summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorRoman Vasilev2017-02-10 13:34:02 +0200
committerRoman Vasilev2017-02-10 13:34:02 +0200
commita9a9a7432a7e60e88bfa900d03005199e06e71f5 (patch)
tree718b21cb2e7a0781c90be9baeaab76a3d0c7f2bb /PKGBUILD
downloadaur-a9a9a7432a7e60e88bfa900d03005199e06e71f5.tar.gz
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..03e0459d26a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+# Maintainer: rvasilev <2rvasilev@live.ru>
+# Contributor: Zhu Jinxuan <zhujinxuan@gmail.com>
+# Contributor: tdy tdy@archlinux.info
+
+pkgname=utopia-documents
+pkgver=3.0.0
+pkgrel=1
+pkgdesc="PDF reader that displays interactive annotations on scientific articles"
+arch=(i686 x86_64)
+url=http://utopiadocs.com
+license=(GPL)
+provides=('utopia-documents')
+depends=(libqglviewer pcre qt5-svg qt5-webkit qt5-script poppler-qt5 python2-pyqt5)
+makedepends=(cmake boost swig glew)
+source=("http://utopiadocs.com/files/${pkgname}-${pkgver}.tgz" "configure.patch")
+sha256sums=('1c259b68fada7f98080a66a63e36c707b78bfc3a5c80a956568ee73c030c8cac'
+ '808a26f259768507e864d729191b8dd85a6472f43d9c1f507dd775dd1eaedcc2')
+
+prepare() {
+PATCH="configure.patch"
+
+cd $pkgname-$pkgver
+patch configure ../$PATCH
+
+./configure --release
+
+cd build/Linux-Release
+cp CMakeCache.txt CMakeCache.txt.1
+sed -i 's|CMAKE_INSTALL_PREFIX:PATH=\/usr|CMAKE_INSTALL_PREFIX:PATH=XXXX|g' CMakeCache.txt.1
+sed -i "s|XXXX|$pkgdir/usr|g" CMakeCache.txt.1
+cp CMakeCache.txt.1 CMakeCache.txt
+
+}
+
+build() {
+ cd $pkgname-$pkgver/build/Linux-Release
+ make -j4
+}
+
+package() {
+ cd $pkgname-$pkgver/build/Linux-Release
+ make install
+}