1 # Maintainer: György Balló <ballogy@freestart.hu>
4 true && pkgname=(libindicator libindicator3)
7 pkgdesc="A set of symbols and convience functions that all indicators would like to use"
9 url="https://launchpad.net/libindicator"
11 makedepends=('gtk2>=2.18' 'gtk3>=2.91')
13 source=(http://launchpad.net/$pkgbase/0.4/$pkgver/+download/$pkgbase-$pkgver.tar.gz)
14 md5sums=('c8f2900fa8e028bb2ea7511a0f368756')
17 cd "$srcdir/$pkgbase-$pkgver"
19 # Use different location for header files for GTK+3
20 sed -i 's/libindicator-/libindicator3-/' libindicator/indicator3-0.4.pc.in.in
21 sed -i 's/libindicator-/libindicator$(VER)-/' libindicator/Makefile.in
23 # Disable building tests
24 sed -i '/tests/ d' Makefile.in
26 [[ -d build-gtk2 ]] || mkdir build-gtk2
28 ../configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/$pkgbase \
29 --disable-static --with-gtk=2
33 [[ -d build-gtk3 ]] || mkdir build-gtk3
35 ../configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/$pkgbase \
41 package_libindicator() {
42 pkgdesc+=" (GTK+ 2 library)"
43 depends=('gtk2>=2.18')
45 cd "$srcdir/$pkgbase-$pkgver/build-gtk2"
47 make DESTDIR="$pkgdir/" install
50 package_libindicator3(){
51 pkgdesc+=" (GTK+ 3 library)"
52 depends=('gtk3>=2.91')
54 cd "$srcdir/$pkgbase-$pkgver/build-gtk3"
56 make -C libindicator DESTDIR="$pkgdir/" install
57 make -C tools DESTDIR="$pkgdir/" install
59 rm -r "$pkgdir/usr/share"
62 depends=('gtk2>=2.18' 'gtk3>=2.91')