Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Matt Neilson

By: a guest on Dec 1st, 2010  |  syntax: Bash  |  size: 1.14 KB  |  views: 50  |  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. # Contributor & Maintainer: mutlu_inek <mutlu_inek@yahoo.de>
  2. # Contributor: machoo02 <ichthyoboy@gmail.com>
  3.  
  4. pkgname=bibus
  5. pkgver=1.5.1
  6. pkgrel=2
  7. pkgdesc="A bibliographic database that can directly insert references in \
  8. OpenOffice.org and generate the bibliographic index."
  9. url="http://sourceforge.net/projects/bibus-biblio/"
  10. license="GPL"
  11. arch=('i686' 'x86_64')
  12. depends=('python-pysqlite' 'wxpython' 'pyxml' 'openoffice-base' 'unixodbc')
  13. makedepends=()
  14. source=(http://downloads.sourceforge.net/$pkgname-biblio/$pkgname-$pkgver.tar.gz)
  15. md5sums=('9d1808f98556b58b3f709bebfba11a80')
  16. install=bibus.install
  17. backup=(etc/bibus.config)
  18.  
  19. build() {
  20.   cd ${srcdir}/${pkgname}-${pkgver}
  21.  
  22.   make -f Setup/Makefile DESTDIR=${pkgdir}/usr python=/usr/bin/python2 \
  23.         sysconfdir=${pkgdir}/etc install || return 1
  24.   rm ${pkgdir}/usr/bin/bibus
  25.   ln -s /usr/share/bibus/bibusStart.py $pkgdir/usr/bin/bibus
  26.   rm $pkgdir/usr/share/bibus/Setup/uninstall.sh
  27.  
  28.   ## Fix .py files for python2
  29.   sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
  30.       -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
  31.       $(find $pkgdir -name '*.py')
  32. }
clone this paste RAW Paste Data