blob: d71d3d7276266288093a638809dad9399e55fd3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Contributor: Andreas Wagner <Andreas dot Wagner at em dot uni-frankfurt dot de>
pkgname=referencer
pkgver=1.2.2
pkgrel=5
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=('GPL2')
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
referencer-lib_path.patch)
prepare()
{
cd "$pkgname-$pkgver"
patch -Np1 -i "${srcdir}/referencer-lib_path.patch"
}
build()
{
export PYTHON=/usr/bin/python2
cd "$pkgname-$pkgver"
# autoreconf
CXXFLAGS="$CXXFLAGS -std=gnu++11"
./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 "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}
md5sums=('d7021937a3d481edc3d8d540eec950cd'
'014f8d4cc4ca9f02d8fcc46a4aa67007')
|