[arch-commits] Commit in ptex/repos (2 files)
Sven-Hendrik Haase
svenstaro at archlinux.org
Sat Sep 8 10:36:36 UTC 2018
Date: Saturday, September 8, 2018 @ 10:36:36
Author: svenstaro
Revision: 378791
archrelease: copy trunk to community-staging-x86_64
Added:
ptex/repos/community-staging-x86_64/
ptex/repos/community-staging-x86_64/PKGBUILD
(from rev 378790, ptex/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: ptex/repos/community-staging-x86_64/PKGBUILD (from rev 378790, ptex/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2018-09-08 10:36:36 UTC (rev 378791)
@@ -0,0 +1,41 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+pkgname=ptex
+pkgver=2.3.0
+pkgrel=1
+pkgdesc="Per-Face Texture Mapping for Production Rendering"
+arch=(x86_64)
+url="http://ptex.us/"
+license=('BSD')
+depends=(zlib)
+makedepends=(git doxygen python2 cmake)
+source=("https://github.com/wdas/ptex/archive/v${pkgver}.tar.gz")
+sha512sums=('2d9d320e4205236a4eff05ec3c67d085624809ebefa89fa3b943d18a8b2b6a5f61c022a4cc4363a7c6ceccfb9eac4f8738dff2e90a3355814f2c4ff096c09992')
+
+prepare() {
+ cd "$pkgname-$pkgver"/src
+
+ sed -i "s/python/python2/g" tests/run_tests.py
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ mkdir -p build && cd build
+ cmake .. \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_INSTALL_PREFIX=/usr
+
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver"/build
+
+ # install -d ${pkgdir}/usr/share
+ make DESTDIR="$pkgdir" install
+
+ # 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