diff options
author | meepzh | 2016-06-12 02:28:41 -0400 |
---|---|---|
committer | meepzh | 2016-06-12 02:28:41 -0400 |
commit | c6b551fbfe7a27e84bb9ac8553d38fdcf444ee63 (patch) | |
tree | cc0269aa239e0b32d4320b23c02f2446034ba413 /PKGBUILD | |
download | aur-c6b551fbfe7a27e84bb9ac8553d38fdcf444ee63.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0bc53b5aa593 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: meepzh <meep.aur@meepzh.com> +pkgname=partio-git +pkgver=1.1.0.r73.g7f3e0d1 +pkgrel=1 +pkgdesc="Particle IO and manipulation library (git version)" +arch=(i686 x86_64) +url="http://www.disneyanimation.com/technology/partio.html" +license=('custom') +depends=('glut glu seexpr') +optdepends=('python2: Python interface support', + 'swig: required for Python interface support', + 'zlib: file compression support') +makedepends=('cmake>=2.4.6' 'git') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=('git+https://github.com/wdas/partio.git' 'CMakeLists.txt.patch' 'py_CMakeLists.txt.patch') +md5sums=('SKIP' '795fd5b88af781f3d94d51bea44518f3' 'eddbcda29bf7957fd423296b9271c7ea') + +pkgver() { + cd "$srcdir/${pkgname%-git}" + # cutting off 'v' prefix that presents in the git tag + git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd "$srcdir" + # Fix SeExpr dependency and remove tests + patch -p1 -i "$srcdir/CMakeLists.txt.patch" + # Change Python version to 2 to work with SeExpr + patch -p1 -i "$srcdir/py_CMakeLists.txt.patch" +} + +build() { + cd "$srcdir/${pkgname%-git}" + mkdir build + cd ./build + cmake -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" +} |