Advertisement
Guest User

libdbusmenu

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