[arch-commits] Commit in ptex/trunk (PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Sat Sep 26 01:11:32 UTC 2015
Date: Saturday, September 26, 2015 @ 03:11:32
Author: svenstaro
Revision: 141617
upgpkg: ptex 2.0.62-1
Pushing ptex
Modified:
ptex/trunk/PKGBUILD
----------+
PKGBUILD | 34 +++++++++++++++++++---------------
1 file changed, 19 insertions(+), 15 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-09-26 00:52:38 UTC (rev 141616)
+++ PKGBUILD 2015-09-26 01:11:32 UTC (rev 141617)
@@ -6,29 +6,33 @@
arch=(i686 x86_64)
url="http://ptex.us/"
license=('BSD')
-depends=(zlib pthread)
-makedepends=(git cmake)
+depends=(zlib)
+makedepends=(git doxygen python2)
+options=(!makeflags)
source=("https://github.com/wdas/ptex/archive/v${pkgver}.tar.gz")
-md5sums=()
+md5sums=('548e0b1c8ef542c01c92418803c56e88')
-build() {
- cd "$pkgname-$pkgver"
+prepare() {
+ cd "$pkgname-$pkgver"/src
- rm -rf build
- mkdir build && cd build
+ sed -i "s/python/python2/g" tests/run_tests.py
+}
- cmake ../src
+build() {
+ cd "$pkgname-$pkgver"/src
make
-}
-check() {
- cd "$pkgname-$pkgver"/build
-
- make test
+ cd doc
+ make
}
package() {
- cd "$pkgname-$pkgver"/build
+ cd "$pkgname-$pkgver"
- make DESTDIR="$pkgdir/" install
+ install -d ${pkgdir}/usr/share
+
+ cp -r install/{bin,include,lib} ${pkgdir}/usr
+ cp -r install/doc ${pkgdir}/usr/share/
+
+ install -Dm644 src/doc/License.txt ${pkgdir}/usr/share/licenses/${pkgname}/License.txt
}
More information about the arch-commits
mailing list