summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAskhat Bakarov2016-11-03 16:47:33 +0700
committerAskhat Bakarov2016-11-03 16:47:33 +0700
commit53eae0a9c19924be43deacd3ab043bc78c156f78 (patch)
treed17d754d8f1e6d6c7f3e3efcdda769075218377a
parentc45d74516084c23dfb2b06e658c5e02954922ecc (diff)
downloadaur-53eae0a9c19924be43deacd3ab043bc78c156f78.tar.gz
Fix compilation
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD31
-rw-r--r--referencer-lib_path.patch11
-rw-r--r--referencer.install18
4 files changed, 37 insertions, 30 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7cfff4b43b8..7f9972c5891 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,10 @@
# Generated by mksrcinfo v8
-# Sat Feb 6 06:37:38 UTC 2016
+# Thu Nov 3 09:46:23 UTC 2016
pkgbase = referencer
pkgdesc = a Gnome application to organise documents or references, and ultimately generate a BibTeX bibliography file
pkgver = 1.2.2
- pkgrel = 4
+ pkgrel = 5
url = https://launchpad.net/referencer/
- install = referencer.install
arch = i686
arch = x86_64
license = GPL2
@@ -19,7 +18,9 @@ pkgbase = referencer
depends = python2
depends = yelp
source = https://launchpad.net/referencer/1./1.2.2/+download/referencer-1.2.2.tar.gz
+ source = referencer-lib_path.patch
md5sums = d7021937a3d481edc3d8d540eec950cd
+ md5sums = 014f8d4cc4ca9f02d8fcc46a4aa67007
pkgname = referencer
diff --git a/PKGBUILD b/PKGBUILD
index dee82a141d2..d71d3d72762 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,12 +2,13 @@
pkgname=referencer
pkgver=1.2.2
-pkgrel=4
+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'
+makedepends=(
+ 'intltool'
'gnome-doc-utils'
'gnome-icon-theme'
'boost' )
@@ -16,13 +17,20 @@ depends=( 'boost-libs'
'poppler-glib'
'python2'
'yelp' )
-source=("https://launchpad.net/$pkgname/1./$pkgver/+download/$pkgname-$pkgver.tar.gz")
-install=${pkgname}.install
+source=(https://launchpad.net/$pkgname/1./$pkgver/+download/$pkgname-$pkgver.tar.gz
+ referencer-lib_path.patch)
+prepare()
+{
+ cd "$pkgname-$pkgver"
-build() {
+ patch -Np1 -i "${srcdir}/referencer-lib_path.patch"
+}
+
+build()
+{
export PYTHON=/usr/bin/python2
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$pkgname-$pkgver"
# autoreconf
CXXFLAGS="$CXXFLAGS -std=gnu++11"
./configure --prefix="/usr" --disable-update-mime-database --enable-python
@@ -35,9 +43,14 @@ build() {
done
}
-package() {
- cd "$srcdir/$pkgname-$pkgver"
+package()
+{
+ cd "$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}
-md5sums=('d7021937a3d481edc3d8d540eec950cd')
+md5sums=('d7021937a3d481edc3d8d540eec950cd'
+ '014f8d4cc4ca9f02d8fcc46a4aa67007')
+
+
+
diff --git a/referencer-lib_path.patch b/referencer-lib_path.patch
new file mode 100644
index 00000000000..df0523c3854
--- /dev/null
+++ b/referencer-lib_path.patch
@@ -0,0 +1,11 @@
+--- referencer-1.2.2/src/Document.C 2014-01-27 03:43:00.000000000 +0700
++++ referencer-1.2.2_/src/Document.C 2016-11-03 16:25:00.698676538 +0700
+@@ -297,7 +297,7 @@
+
+ lib_path = lib_path->get_parent();
+ up_dir_level += "../";
+- if (lib_path == 0) {
++ if (lib_path) {
+ doc_is_relative_to_library = false;
+ break;
+ }
diff --git a/referencer.install b/referencer.install
deleted file mode 100644
index 373d1bf7976..00000000000
--- a/referencer.install
+++ /dev/null
@@ -1,18 +0,0 @@
-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 $*