aboutsummaryrefslogtreecommitdiffstats
path: root/community/libindicator/APKBUILD
blob: 4e86c9b228f9d36493b13ce37bc083afdca30062 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=libindicator
pkgver=12.10.1
pkgrel=0
pkgdesc="Set of symbols and convenience functions for Ayatana indicators (GTK+ 3 library)"
url="https://launchpad.net/libindicator"
arch="all"
license="GPL-3.0"
makedepends="gtk+3.0-dev"
subpackages="$pkgname-dev"
source="https://launchpad.net/$pkgname/${pkgver%.*}/${pkgver}/+download/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {	
	default_prepare
	cd "$builddir"
	sed '/-Werror/s/$/ -Wno-deprecated-declarations/' -i libindicator/Makefile.am
	sed '/-Werror/s/$/ -Wno-deprecated-declarations/' -i libindicator/Makefile.in
	update_config_sub
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--localstatedir=/var \
		--libexecdir=/usr/lib/libindicator \
		--sysconfdir=/etc \
		--with-gtk=3 \
		--disable-static \
		--disable-tests
	make
}

check() {
        cd "$builddir"
        make check
}

package() {
	cd "$builddir"
	make DESTDIR="${pkgdir}" install
}

sha512sums="d6d77d0309b15cf6b52539323920ab0c1594cb1c1cef8a8d67cd0f76f8ceeeac28eb6db6227563df1932e6f1fadcffac68d82982182b745257dfaf91f1c945af  libindicator-12.10.1.tar.gz"