diff options
author | bartus | 2017-09-22 18:23:51 +0200 |
---|---|---|
committer | bartus | 2017-09-22 18:23:51 +0200 |
commit | d36c2573191a9af9e9d13b928c48976f9a4bcb7f (patch) | |
tree | f38adcc8f6b43f7c2fa92c2b9095f14d89ad920d | |
download | aur-d36c2573191a9af9e9d13b928c48976f9a4bcb7f.tar.gz |
initial
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | PKGBUILD | 59 | ||||
-rw-r--r-- | cmake.extra.install.dirs.remove.patch | 16 |
3 files changed, 102 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d0bf9115a4ba --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = appleseed-git + pkgdesc = physically-based global illumination rendering engine primarily designed for animation and visual effects. + pkgver = 1.7.0.beta.r719.g7ebe81fc2 + pkgrel = 1 + url = http://appleseedhq.net + arch = i686 + arch = x86_64 + license = MIT + makedepends = git + makedepends = cmake + depends = python2 + depends = qt4 + depends = seexpr>=2.11 + depends = boost + depends = openexr + depends = opencolorio + depends = openimageio + depends = openshadinglanguage + depends = xerces-c + depends = zlib + source = appleseed-git::git+https://github.com/appleseedhq/appleseed.git + source = cmake.extra.install.dirs.remove.patch + md5sums = SKIP + md5sums = d4ca0164563a11be1608c3e5f957c684 + +pkgname = appleseed-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6e0c7b7202fe --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,59 @@ +# Maintainer: bartus <aur@bartus.33mail.com> +pkgname=appleseed-git +#_fragment= +pkgver=1.7.0.beta.r719.g7ebe81fc2 +pkgrel=1 +pkgdesc="physically-based global illumination rendering engine primarily designed for animation and visual effects. " +arch=(i686 x86_64) +url="http://appleseedhq.net" +license=('MIT') +depends=(python2 qt4 'seexpr>=2.11' boost openexr opencolorio openimageio openshadinglanguage xerces-c zlib) +makedepends=(git cmake) +options=() +source=("${pkgname}::git+https://github.com/appleseedhq/appleseed.git${_fragment}" + "cmake.extra.install.dirs.remove.patch") +md5sums=('SKIP' + 'd4ca0164563a11be1608c3e5f957c684') + +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} + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + cd ${pkgname} + patch -Np1 -i ../cmake.extra.install.dirs.remove.patch + 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} + mkdir -p build + cd build + cmake -DCMAKE_BUILD_TYPE=Ship -DCMAKE_INSTALL_PREFIX=/opt/appleseed ${CMAKE_FLAGS} .. + make +} + +package() { + cd ${pkgname}/build + make DESTDIR="$pkgdir/" install + install -D -m644 "../LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"h +} + +# vim:set ts=2 sw=2 et: diff --git a/cmake.extra.install.dirs.remove.patch b/cmake.extra.install.dirs.remove.patch new file mode 100644 index 000000000000..c1b95e89d7c2 --- /dev/null +++ b/cmake.extra.install.dirs.remove.patch @@ -0,0 +1,16 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0d3d5eeaf..4eb39a8f3 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -662,11 +662,6 @@ install ( + DESTINATION . + ) + +-install ( +- CODE "FILE (MAKE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/images)" +- CODE "FILE (MAKE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/images/autosave)" +-) +- + install ( + DIRECTORY + "sandbox/tests/unit benchmarks" |