1 # Maintainer: György Balló <ballogy@freestart.hu>
4 true && pkgname=(appmenu-gtk2 appmenu-gtk3)
8 url="https://launchpad.net/appmenu-gtk"
10 makedepends=('gtk2-ubuntu>=2.18' 'gtk3-ubuntu>=3.0' 'libdbusmenu-gtk2>=0.3.101' 'libdbusmenu-gtk3>=0.3.101')
12 source=(http://launchpad.net/appmenu-gtk/0.3/0.3.0/+download/$pkgbase-$pkgver.tar.gz)
13 md5sums=('2379672a7d00fa1ef5b15c67f76886be')
16 cd "$srcdir/$pkgbase-$pkgver"
18 [[ -d build-gtk2 ]] || mkdir build-gtk2
20 ../configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
21 --disable-static --with-gtk2
25 [[ -d build-gtk3 ]] || mkdir build-gtk3
27 ../configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
33 package_appmenu-gtk2() {
34 pkgdesc="Adds appmenu support for GTK+ 2 apps"
35 depends=('gtk2-ubuntu>=2.18' 'libdbusmenu-gtk2>=0.3.101')
37 cd "$srcdir/$pkgbase-$pkgver/build-gtk2"
39 make DESTDIR="$pkgdir/" install
40 install -Dm755 80appmenu "$pkgdir/etc/profile.d/80appmenu.sh"
41 rm -r "$pkgdir/etc/X11"
44 package_appmenu-gtk3() {
45 pkgdesc="Adds appmenu support for GTK+ 3 apps"
46 depends=('gtk3-ubuntu>=3.0' 'libdbusmenu-gtk3>=0.3.101')
48 cd "$srcdir/$pkgbase-$pkgver/build-gtk3"
50 make DESTDIR="$pkgdir/" install
51 install -Dm755 80appmenu-gtk3 "$pkgdir/etc/profile.d/80appmenu-gtk3.sh"
52 rm -r "$pkgdir/etc/X11"
55 pkgdesc="Adds appmenu support for GTK+ apps"
56 depends=('gtk2-ubuntu>=2.18' 'gtk3-ubuntu>=3.0' 'libdbusmenu>=0.3.101')