Advertisement
Guest User

gtkhotkey's PKGBUILD

a guest
Nov 7th, 2012
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.05 KB | None | 0 0
  1. # Maintainer: kiefer <jorgelmadrid@gmail.com>
  2. # Contributor: Alessio Sergi <asergi at archlinux dot us>
  3. # Contributor: Gaute Hope <eg@gaute.vetsj.com>
  4. # Contributor: Marcos Heredia <chelqo@gmail.com>
  5.  
  6. pkgname=gtkhotkey
  7. pkgver=0.2.1
  8. pkgrel=5
  9. pkgdesc="Platform independent hotkey handling for Gtk+ applications"
  10. arch=('i686' 'x86_64')
  11. url="https://launchpad.net/gtkhotkey"
  12. license=('LGPL3')
  13. depends=('gtk2')
  14. makedepends=('intltool')
  15. options=('!libtool')
  16. source=(http://launchpad.net/$pkgname/${pkgver%.*}/$pkgver/+download/$pkgname-$pkgver.tar.gz)
  17. md5sums=('bfdc73e68e9adbe0d506d31a25862914')
  18.  
  19. build() {
  20.   cd "$srcdir/$pkgname-$pkgver"
  21.  
  22.   # doc path fix
  23.   sed -i '/gtkhotkeydocdir/s/\${prefix}/\${datadir}/g' Makefile.{am,in}
  24.  
  25.   # glib2 fix
  26.   sed -i 's|glib/gquark\.h|glib.h|' src/gtk-hotkey-error.h
  27.   sed -i 's|glib/gtypes\.h|glib.h|' src/x11/tomboykeybinder.h
  28.  
  29.   ./configure --prefix=/usr \
  30.               --disable-static
  31.   make
  32. }
  33.  
  34. package() {
  35.   cd "$srcdir/$pkgname-$pkgver"
  36.  
  37.   make DESTDIR="$pkgdir/" install
  38. }
  39.  
  40. # vim:set ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement