Advertisement
Guest User

libdbusmenu-gtk2

a guest
Mar 14th, 2012
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. # Maintainer: György Balló <ballogy@freestart.hu>
  2. _pkgbase=libdbusmenu
  3. pkgname=libdbusmenu-gtk2
  4. pkgver=0.5.1
  5. pkgrel=1
  6. pkgdesc="A small little library that was created by pulling out some common code out of indicator-applet"
  7. arch=('i686' 'x86_64')
  8. url="https://launchpad.net/dbusmenu"
  9. license=('LGPL')
  10. makedepends=('gtk2>=2.16' 'intltool>=0.35.0' 'gnome-doc-utils>=0.3.2' 'gobject-introspection>=0.10.0' 'vala' 'python2')
  11. options=(!libtool !emptydirs)
  12. source=(http://launchpad.net/dbusmenu/0.5/$pkgver/+download/$_pkgbase-$pkgver.tar.gz)
  13. md5sums=('9742c8b4e04d99f2d187041272052b53')
  14.  
  15. build() {
  16. cd "$srcdir/$_pkgbase-$pkgver"
  17. sed -i 's@^#!.*python$@#!/usr/bin/python2@' tools/dbusmenu-bench
  18.  
  19. # Use different location for header files for GTK+3
  20. sed -i 's/libdbusmenu-0.4/libdbusmenu3-0.4/' libdbusmenu-gtk/dbusmenu-gtk3-0.4.pc.in
  21. sed -i 's|libdbusmenu-0.4/libdbusmenu-gtk$(VER)|libdbusmenu$(VER)-0.4/libdbusmenu-gtk|' libdbusmenu-gtk/Makefile.in
  22.  
  23. ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/$pkgname \
  24. --disable-static --disable-scrollkeeper --disable-tests --with-gtk=2
  25. make
  26. }
  27.  
  28. package() {
  29. pkgdesc+=" (GTK+ 2 library)"
  30. depends=('gtk2>=2.16' "libdbusmenu=$pkgver")
  31.  
  32. cd "$srcdir/$_pkgbase-$pkgver"
  33.  
  34. make -C libdbusmenu-glib DESTDIR="$pkgdir/" install
  35. make -C libdbusmenu-gtk DESTDIR="$pkgdir/" install
  36. make -C libdbusmenu-glib DESTDIR="$pkgdir/" uninstall
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement