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 cmake doxygen python2) source=("https://github.com/wdas/ptex/archive/v${pkgver}.tar.gz") sha256sums=('285947961ac7da2a7a15955259e271a50e485793e1d596d9f254c847301eda92') prepare() { cd "$pkgname-$pkgver" sed -i "s/python/python2/g" src/tests/run_tests.py mkdir -p build } build() { cd "$pkgname-$pkgver"/build cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make } package() { cd "$pkgname-$pkgver"/build make DESTDIR="$pkgdir" install # install -d ${pkgdir}/usr/share # # cp -r install/{bin,include,lib} ${pkgdir}/usr # cp -r install/doc ${pkgdir}/usr/share/ # cd .. install -Dm644 src/doc/License.txt ${pkgdir}/usr/share/licenses/${pkgname}/License.txt }