summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAskhat2015-09-02 20:42:34 +0600
committerAskhat2015-09-02 20:42:34 +0600
commitaa6e6e115bcac87fd4cbed8abacca6f02a2fee86 (patch)
treefbfd7849fce232957f43a94cf859755433c8b70c
downloadaur-aa6e6e115bcac87fd4cbed8abacca6f02a2fee86.tar.gz
Initial import
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD41
-rw-r--r--referencer.install18
3 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..cf1ea6bd7ae
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = referencer
+ pkgdesc = a Gnome application to organise documents or references, and ultimately generate a BibTeX bibliography file
+ pkgver = 1.2.2
+ pkgrel = 3
+ url = https://launchpad.net/referencer/
+ install = referencer.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = intltool
+ makedepends = gnome-doc-utils
+ makedepends = gnome-icon-theme
+ makedepends = boost
+ depends = boost-libs
+ depends = libgnomeuimm
+ depends = poppler-glib
+ depends = python2
+ depends = yelp
+ source = https://launchpad.net/referencer/1./1.2.2/+download/referencer-1.2.2.tar.gz
+ md5sums = d7021937a3d481edc3d8d540eec950cd
+
+pkgname = referencer
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ab365f09b17
--- /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')
diff --git a/referencer.install b/referencer.install
new file mode 100644
index 00000000000..373d1bf7976
--- /dev/null
+++ b/referencer.install
@@ -0,0 +1,18 @@
+post_install() {
+ gtk-update-icon-cache /usr/share/icons/hicolor > /dev/null 2>&1
+ update-mime-database /usr/share/mime > /dev/null 2>&1
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}
+
+op=$1
+shift
+
+$op $*