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

kupfer PKGBUILD + install file

By: a guest on Jan 17th, 2013  |  syntax: Bash  |  size: 1.84 KB  |  views: 48  |  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: D. Can Celasun <dcelasun[at]gmail[dot]com>
  2. # Contributor: Alessio Sergi <asergi at archlinux dot us>
  3. # Contributor: Asa Marco <marcoasa90[at]gmail[.]com>
  4.  
  5. pkgname=kupfer
  6. pkgver=208
  7. pkgrel=8
  8. pkgdesc="A convenient command and access tool"
  9. arch=('any')
  10. url="http://engla.github.com/kupfer/"
  11. license=('GPL3')
  12. depends=('desktop-file-utils' 'hicolor-icon-theme' 'pygtk'
  13.          'python2-dbus' 'python2-gobject2' 'python2-keybinder2' 'python2-xdg')
  14. makedepends=('intltool' 'python2-docutils')
  15. optdepends=('gnome-python-desktop: full GNOME integration'
  16.             'python2-gdata: Google services support'
  17.             'python2-gnomekeyring: GNOME keyring support'
  18.             'python2-setproctitle: set process name'
  19.             'python2-wnck: tracks running applications')
  20. install=$pkgname.install
  21. source=("$pkgname-$pkgver.tar.gz"::"https://github.com/engla/$pkgname/archive/v$pkgver.tar.gz"
  22.         "settings.patch")
  23. sha1sums=('95c9e2b5da02c426817746c42b3d72d85e9ed0ed'
  24.           '0c64ffe7889a1565e2427d9183cb607764753912')
  25.  
  26. build() {
  27.   cd "$srcdir/$pkgname-$pkgver"
  28.  
  29.   # LP bug #841867
  30.   patch -Np1 -i "$srcdir"/settings.patch
  31.  
  32.   # python2 fix
  33.   sed -i -e 's_#![ ]*.*python$_&2_' {waf,{auxdata/,}wscript,$(find . -name "*.py")}
  34.  
  35.   # fix man page generation
  36.   sed -i 's_rst2man_&2_Ig' wscript
  37.  
  38.   export PYTHON="/usr/bin/python2"
  39.   ./waf configure --prefix=/usr \
  40.                   --no-update-mime \
  41.                   --no-update-icon-cache
  42.   ./waf
  43. }
  44.  
  45. package() {
  46.   cd "$srcdir/$pkgname-$pkgver"
  47.  
  48.   ./waf install -f --destdir="$pkgdir/"
  49. }
  50.  
  51. # vim:set ts=2 sw=2 et:
  52.  
  53.  
  54.  
  55. ### kupfer.install
  56.  
  57. post_install() {
  58.   gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
  59.   update-mime-database /usr/share/mime
  60.   update-desktop-database -q
  61. }
  62.  
  63. post_upgrade() {
  64.   post_install "$1"
  65. }
  66.  
  67. post_remove() {
  68.   post_install "$1"
  69. }
clone this paste RAW Paste Data