2017-04-25 06:03:34 +08:00
|
|
|
pkgname=ptex
|
2019-01-08 21:29:34 +08:00
|
|
|
pkgver=2.3.0
|
2017-04-25 06:03:34 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Per-Face Texture Mapping for Production Rendering"
|
2019-01-08 21:29:34 +08:00
|
|
|
arch=(x86_64)
|
2017-04-25 06:03:34 +08:00
|
|
|
url="http://ptex.us/"
|
|
|
|
license=('BSD')
|
|
|
|
depends=(zlib)
|
|
|
|
makedepends=(git cmake doxygen python2)
|
|
|
|
source=("https://github.com/wdas/ptex/archive/v${pkgver}.tar.gz")
|
2019-01-08 21:29:34 +08:00
|
|
|
sha256sums=('285947961ac7da2a7a15955259e271a50e485793e1d596d9f254c847301eda92')
|
2017-04-25 06:03:34 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|