void-packages/srcpkgs/ptex/template

30 lines
779 B
Bash
Raw Normal View History

2021-04-17 08:46:05 +00:00
# Template file for 'ptex'
pkgname=ptex
version=2.3.2
revision=1
build_style=cmake
configure_args="-DPTEX_VER=$version"
hostmakedepends="pkg-config"
makedepends="zlib-devel"
short_desc="Per-Face Texture Mapping for Production Rendering"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="BSD-3-Clause"
homepage="http://ptex.us/"
distfiles="https://github.com/wdas/ptex/archive/refs/tags/v${version}.tar.gz"
checksum=30aeb85b965ca542a8945b75285cd67d8e207d23dbb57fcfeaab587bb443402b
post_install() {
sed '1,/\/\*/d;/\*\//,$d' src/ptex/PtexCache.h > LICENSE
vlicense LICENSE
}
ptex-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/share/cmake
vmove usr/include
vmove "usr/lib/*.a"
}
}