From 8b28029feede61396b79c509396b94d095f25986 Mon Sep 17 00:00:00 2001 From: Andreas Grapentin Date: Thu, 1 Feb 2018 17:11:16 +0100 Subject: pcr/yafaray-blender-exporter: added --- pcr/yafaray-blender-exporter/PKGBUILD | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pcr/yafaray-blender-exporter/PKGBUILD 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 +# Contributor: Márcio Silva + +# 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: -- cgit v1.2.3