Want more features on Pastebin? Sign Up, it's FREE!
Guest

gtkhotkey's PKGBUILD

By: a guest on Nov 7th, 2012  |  syntax: Bash  |  size: 1.05 KB  |  views: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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:
clone this paste RAW Paste Data