summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorbartus2018-05-06 01:43:28 +0200
committerbartus2018-05-06 01:43:28 +0200
commitf9d9833e15672440c0b0674a2b1729dceecfe552 (patch)
tree1e0f3f6a80b6083947a9127ea7c4acdd471da996 /PKGBUILD
downloadaur-f9d9833e15672440c0b0674a2b1729dceecfe552.tar.gz
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD58
1 files changed, 58 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9ca214f9207
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,58 @@
+# Maintainer: bartus <aur@bartus.33mail.com>
+pkgname=appleseed
+pkgrel=1
+pkgver=1.9.0
+_pkgver=${pkgver}-beta
+pkgdesc="physically-based global illumination rendering engine primarily designed for animation and visual effects. "
+arch=(x86_64)
+url="http://appleseedhq.net"
+license=('MIT')
+depends=(python2 qt4 'seexpr>=2.11' boost openexr opencolorio openimageio openshadinglanguage xerces-c zlib)
+makedepends=(cmake)
+options=()
+source=("https://github.com/${pkgname}hq/${pkgname}/archive/${_pkgver}.tar.gz"
+ )
+md5sums=('2843aaf4f4b69088ac6466808b329b27'
+ )
+
+CMAKE_FLAGS="-DUSE_EXTERNAL_EXR=ON \
+ -DUSE_EXTERNAL_OCIO=ON \
+ -DUSE_EXTERNAL_OIIO=ON \
+ -DUSE_EXTERNAL_OSL=ON \
+ -DUSE_EXTERNAL_PNG=ON \
+ -DUSE_EXTERNAL_XERCES=ON \
+ -DUSE_EXTERNAL_ZLIB=ON \
+ -DUSE_EXTERNAL_SEEXPR=ON \
+ -DUSE_STATIC_BOOST=OFF \
+ -DUSE_STATIC_OCIO=OFF \
+ -DUSE_STATIC_OIIO=OFF \
+ -DUSE_STATIC_OSL=OFF \
+ -DWITH_DISNEY_MATERIAL=ON \
+ -DWARNINGS_AS_ERRORS=OFF"
+
+#pkgver() {
+# cd ${pkgname}-${_pkgver}
+# git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+#}
+
+prepare() {
+ cd ${pkgname}-${_pkgver}
+ grep -q avx /proc/cpuinfo && CMAKE_FLAGS="${CMAKE_FLAGS} -DUSE_AVX=ON"
+ grep -q avx2 /proc/cpuinfo && CMAKE_FLAGS="${CMAKE_FLAGS} -DUSE_AVX2=ON"
+ grep -q sse4_2 /proc/cpuinfo && CMAKE_FLAGS="${CMAKE_FLAGS} -DUSE_SSE42=ON"
+}
+build() {
+ cd ${pkgname}-${_pkgver}
+ mkdir -p build
+ cd build
+ cmake -DCMAKE_BUILD_TYPE=Ship -DCMAKE_INSTALL_PREFIX=/opt/appleseed ${CMAKE_FLAGS} ..
+ make
+}
+
+package() {
+ cd ${pkgname}-${_pkgver}/build
+ make DESTDIR="$pkgdir/" install
+ install -D -m644 "../LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et: