diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2018-02-01 17:11:16 +0100 |
---|---|---|
committer | Andreas Grapentin <andreas@grapentin.org> | 2018-02-01 17:11:38 +0100 |
commit | 8b28029feede61396b79c509396b94d095f25986 (patch) | |
tree | 754e4ef093aadb83808635f5821c194e29392a5e | |
parent | f273548223cfaa4682e54ecd7edd03b76b268801 (diff) | |
download | abslibre-8b28029feede61396b79c509396b94d095f25986.tar.gz abslibre-8b28029feede61396b79c509396b94d095f25986.tar.bz2 abslibre-8b28029feede61396b79c509396b94d095f25986.zip |
pcr/yafaray-blender-exporter: added
-rw-r--r-- | pcr/yafaray-blender-exporter/PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pcr/yafaray-blender-exporter/PKGBUILD b/pcr/yafaray-blender-exporter/PKGBUILD new file mode 100644 index 000000000..e90151afa --- /dev/null +++ b/pcr/yafaray-blender-exporter/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer (AUR): Jeremy Johnathan Rodent <narf@x201t> +# Contributor: Márcio Silva <coadde@hyperbola.info> + +# parabola changes and rationale: +# - adapted from yafaray-experimental-blender-exporter on AUR +# - renamed tarball to avoid collisions +# - added replaces for previous pkgname 'blender-addon-yafaray' (2018-02-01) + +pkgname='yafaray-blender-exporter' +pkgver='3.3.0' +pkgrel='1' +pkgdesc="Yafaray exporter plugin for blender" +arch=('any') +url='http://yafaray.org' +license=('GPL') +depends=('blender') +optdepends=('yafaray: for the actual rendering part.') +replaces=('blender-addon-yafaray') +source=("$pkgname-$pkgver.tar.gz::https://github.com/YafaRay/Blender-Exporter/archive/v$pkgver.tar.gz") +md5sums=('b1eb1bb0eb56541c6c1990f02b15603f') + +_srcdir="Blender-Exporter-$pkgver" +_blender_ver="2.78" + +prepare() { + cd "$_srcdir" + sed -i 's/ctypes.cdll.LoadLibrary(os.path.join(BIN_PATH, dll))/pass/' '__init__.py' + sed -i 's#PLUGIN_PATH =.*#PLUGIN_PATH = "/usr/lib/yafaray"#' '__init__.py' +} + +package() { + cd "$_srcdir" + dstdir="$pkgdir/usr/share/blender/$_blender_ver/scripts/addons/yafaray" + mkdir -p "$dstdir" + cp -r * "$dstdir" +} + +# vim:set ts=2 sw=2 et: |