updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / libindicator / PKGBUILD
blobf9e56ae7e29de28a91033e71066a247ad9f0d50e
1 # Maintainer: György Balló <ballogy@freestart.hu>
2 pkgbase=libindicator
3 pkgname=libindicator
4 true && pkgname=(libindicator libindicator3)
5 pkgver=0.4.1
6 pkgrel=2
7 pkgdesc="A set of symbols and convience functions that all indicators would like to use"
8 arch=('i686' 'x86_64')
9 url="https://launchpad.net/libindicator"
10 license=('GPL')
11 makedepends=('gtk2>=2.18' 'gtk3>=2.91')
12 options=(!libtool)
13 source=(http://launchpad.net/$pkgbase/0.4/$pkgver/+download/$pkgbase-$pkgver.tar.gz)
14 md5sums=('c8f2900fa8e028bb2ea7511a0f368756')
16 build() {
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
27   pushd build-gtk2
28   ../configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/$pkgbase \
29               --disable-static --with-gtk=2
30   make
31   popd
33   [[ -d build-gtk3 ]] || mkdir build-gtk3
34   pushd build-gtk3
35   ../configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/$pkgbase \
36               --disable-static
37   make
38   popd
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')
63 true && depends=()