summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a51469cba9e2c797a9f12c6b99e9841e376bc8a8 (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
57
58
59
60
61
62
63
64
# Maintainer: David McInnis <dave@dave3.xyz>
# Contributor: Andreas Wagner <Andreas dot Wagner at em dot uni-frankfurt dot de>

pkgname=referencer
pkgver=1.2.2
pkgrel=8
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=(       'libgnome'
                'libgnomeui'
                'libgnome-data'
                'libgnomemm'
                'libgnomeuimm'
                'libbonobo'
                'libbonoboui'
                'orbit2'
                'boost-libs'
                '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'
         '50b0d7fc0539fd8fb25d837b309e6928')