diff options
author | Francisco Pina Martins | 2014-12-06 22:14:10 +0000 |
---|---|---|
committer | Francisco Pina Martins | 2014-12-06 22:14:10 +0000 |
commit | 864a16968854b791191996ae80968b52b4e0e739 (patch) | |
tree | e0508586c203e09ae8d7ee6adb031cb0a70701f4 | |
download | aur-864a16968854b791191996ae80968b52b4e0e739.tar.gz |
Merged bibus into MyPKGBUILDs.
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | PKGBUILD | 48 | ||||
-rw-r--r-- | bibus.install | 13 |
4 files changed, 89 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..889f0b4dca84 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = bibus + pkgdesc = A bibliographic database that can directly insert references in OpenOffice.org/LibreOffice and generate the bibliographic index. + pkgver = 1.5.2 + pkgrel = 5 + url = http://sourceforge.net/projects/bibus-biblio/ + install = bibus.install + arch = any + license = GPL + depends = python2-pysqlite + depends = wxpython + depends = python2-lxml + depends = unixodbc + depends = hicolor-icon-theme + optdepends = libreoffice + optdepends = openoffice-base-bin + backup = etc/bibus.config + source = http://downloads.sourceforge.net/project/bibus-biblio/bibus-biblio/bibus-1.5.2/bibus_1.5.2.orig.tar.gz + md5sums = 5bb8b26d0980ebb72a2882b618fbe62c + +pkgname = bibus + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..d0d09b856a41 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +pkg/ +src/ +*.tgz +*.tar.gz +*.xz +*.sig +*.swp diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fffc4236625b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Contributor & Maintainer: Stunts <f.pinamartins@gmail.com> +# Contributor: machoo02 <ichthyoboy@gmail.com> +# Contributor: mutlu_inek <mutlu_inek@yahoo.de> + +pkgname=bibus +pkgver=1.5.2 +pkgrel=5 +pkgdesc="A bibliographic database that can directly insert references in \ +OpenOffice.org/LibreOffice and generate the bibliographic index." +url="http://sourceforge.net/projects/bibus-biblio/" +license="GPL" +arch=('any') +depends=('python2-pysqlite' 'wxpython' 'python2-lxml' 'unixodbc' 'hicolor-icon-theme') +optdepends=('libreoffice' 'openoffice-base-bin') +source=(http://downloads.sourceforge.net/project/$pkgname-biblio/$pkgname-biblio/${pkgname}-${pkgver}/${pkgname}_${pkgver}.orig.tar.gz) +md5sums=('5bb8b26d0980ebb72a2882b618fbe62c') +install=${pkgname}.install +backup=(etc/bibus.config) + +package() { + cd "$srcdir/$pkgname-$pkgver" + + if [[ -d /usr/lib/libreoffice ]]; then + export oopath=/usr/lib/libreoffice/program + export ooure=/usr/lib/libreoffice/program + export oobasis=/usr/lib/libreoffice/program + elif [[ -d /opt/openoffice.org3 ]]; then + export oopath=/opt/openoffice.org3/program + export ooure=/opt/openoffice.org3/program + export oobasis=/opt/openoffice.org3/program + fi + + make -f Setup/Makefile DESTDIR="$pkgdir/usr" python=/usr/bin/python2 \ + sysconfdir="$pkgdir/etc" oopath=$oopath ooure=$ooure oobasis=$oobasis install + rm "$pkgdir/usr/bin/bibus" + ln -s /usr/share/bibus/bibusStart.py "$pkgdir/usr/bin/bibus" + rm "$pkgdir/usr/share/bibus/Setup/uninstall.sh" + + ## Fix .py files for python2 and DOS line breaks + sed -i -e "s|\x0D$||" \ + -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + $(find $pkgdir -name '*.py') + + ## Fix paths in config file + sed -i -e "s|${pkgdir}||g" "${pkgdir}/usr/share/bibus/bibus.cfg" +} + diff --git a/bibus.install b/bibus.install new file mode 100644 index 000000000000..2f704e1e0d85 --- /dev/null +++ b/bibus.install @@ -0,0 +1,13 @@ +post_install() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_remove() { + post_upgrade +} |