[arch-commits] Commit in ptex/repos (2 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Wed Mar 28 23:19:29 UTC 2018


    Date: Wednesday, March 28, 2018 @ 23:19:29
  Author: svenstaro
Revision: 313199

archrelease: copy trunk to community-testing-x86_64

Added:
  ptex/repos/community-testing-x86_64/
  ptex/repos/community-testing-x86_64/PKGBUILD
    (from rev 313198, ptex/trunk/PKGBUILD)

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: ptex/repos/community-testing-x86_64/PKGBUILD (from rev 313198, ptex/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2018-03-28 23:19:29 UTC (rev 313199)
@@ -0,0 +1,42 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+pkgname=ptex
+pkgver=2.1.33
+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)
+options=(!makeflags)
+source=("https://github.com/wdas/ptex/archive/v${pkgver}.tar.gz")
+sha512sums=('8707056b5073d23d9d82c2633bb3dfea67b8fad58f60b235683b2e43fc786a97e1e9ae44944263b085210a84bf09d326076327533de572c04b10623a45c19df5')
+
+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