# Maintainer : bartus # Maintainer: Alex Dahl _name="partio" pkgname=${_name} pkgver=1.13.0 _fragment="#tag=v${pkgver}" pkgrel=1 pkgdesc="Particle IO and manipulation library" arch=(i686 x86_64) url="https://www.disneyanimation.com/technology/partio.html" license=('custom') depends=('glut' 'glu' 'seexpr') optdepends=('python2: Python interface support' 'zlib: file compression support') makedepends=('cmake>=2.4.6' 'swig' 'git') provides=("${pkgname}") conflicts=("${pkgname}") source=("git+https://github.com/wdas/partio.git${_fragment}" ) md5sums=('SKIP' ) pkgver() { cd "$srcdir/${pkgname%-git}" # cutting off 'v' prefix that presents in the git tag git describe --tag | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } #prepare() { # cd "$srcdir/${pkgname%-git}" # git apply ../*.patch #} build() { cd "$srcdir/${pkgname%-git}" mkdir -p build cd ./build cmake -DCMAKE_INSTALL_LIBDIR=/usr/lib -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev .. make } package() { cd "$srcdir/${pkgname%-git}/build" make DESTDIR="$pkgdir/" install # Copy custom BSD license install -D -m644 "../src/doc/license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }