summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..ab365f09b17a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Contributor: Andreas Wagner <Andreas dot Wagner at em dot uni-frankfurt dot de>
+
+pkgname=referencer
+pkgver=1.2.2
+pkgrel=3
+pkgdesc="a Gnome application to organise documents or references, and ultimately generate a BibTeX bibliography file"
+arch=('i686' 'x86_64')
+url="https://launchpad.net/referencer/"
+license="GPL"
+makedepends=( 'intltool'
+ 'gnome-doc-utils'
+ 'gnome-icon-theme'
+ 'boost' )
+depends=( 'boost-libs'
+ 'libgnomeuimm'
+ 'poppler-glib'
+ 'python2'
+ 'yelp' )
+source=("https://launchpad.net/$pkgname/1./$pkgver/+download/$pkgname-$pkgver.tar.gz")
+install=${pkgname}.install
+
+build() {
+ export PYTHON=/usr/bin/python2
+ cd "$srcdir/$pkgname-$pkgver"
+# autoreconf
+ ./configure --prefix="/usr" --disable-update-mime-database --enable-python
+ sed -i 's|$(MAKE) $(AM_MAKEFLAGS) install-data-hook||' data/Makefile
+ make clean
+ make
+ echo "Patching *.py files to use python2..."
+ for i in ads.py dblp.py expj.py genkey.py isi-plugin.py lyx.py pubmed.py ; do
+ sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' plugins/$i
+ done
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+}
+
+md5sums=('d7021937a3d481edc3d8d540eec950cd')