summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbartus2018-05-12 14:34:02 +0200
committerbartus2018-05-12 14:34:02 +0200
commit43cc022b83d2029cba7ff06321048c9c8505c5f2 (patch)
tree33fe8c92590b77bfb95868e9233bb4e19b51182d
downloadaur-43cc022b83d2029cba7ff06321048c9c8505c5f2.tar.gz
initial
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD37
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..75cfcd1bbf6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = blender-plugin-luxcorerender
+ pkgdesc = LuxCoreRender exporter plugin for Blender
+ pkgver = 2.0.r0.gbb9c5ee
+ pkgrel = 1
+ url = http://www.luxrender.net/
+ arch = any
+ license = GPL
+ makedepends = git
+ makedepends = expac
+ depends = blender
+ depends = luxcorerender
+ conflicts = luxblend25
+ conflicts = luxblend25-hg
+ source = luxcore::git+https://github.com/LuxCoreRender/BlendLuxCore.git#tag=blendluxcore_v2.0
+ md5sums = SKIP
+
+pkgname = blender-plugin-luxcorerender
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b084ccda218
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Lubosz Sarnecki <lubosz@gmail.com>
+# Original Maintainer: Micael Dias
+
+_fragment="#tag=blendluxcore_v2.0"
+_blender=$(expac %v blender|grep -oP '(?<=\:)[[:digit:]]{1}\.[[:digit:]]{2}(?=\.)')
+_name="luxcore"
+
+pkgname=blender-plugin-luxcorerender
+pkgver=2.0.r0.gbb9c5ee
+pkgrel=1
+pkgdesc="LuxCoreRender exporter plugin for Blender"
+arch=('any')
+url="http://www.luxrender.net/"
+license=('GPL')
+depends=(blender luxcorerender)
+makedepends=(git expac)
+conflicts=(luxblend25 luxblend25-hg)
+source=("${_name}::git+https://github.com/LuxCoreRender/BlendLuxCore.git${_fragment}")
+md5sums=("SKIP")
+
+pkgver() {
+ cd ${srcdir}/${_name}
+ git describe --long --tags | sed 's/^blendluxcore_v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+package() {
+ cd ${srcdir}/${_name}
+ install -d -m755 ${pkgdir}/usr/share/blender/${_blender}/scripts/addons
+ cp -a ${srcdir}/${_name}/ ${pkgdir}/usr/share/blender/${_blender}/scripts/addons
+ # change the search path in exporter so it finds pylux in its new location :(previous solution was much better, what happen to blendlux )
+ #sed -i 's|from.*import pylux|import pylux|' "$pkgdir/usr/share/blender/$_blender/scripts/addons/luxrender/outputs/pure_api.py"
+ for file in `grep -rl import\ pyluxcore ${pkgdir}` ; do sed -i 's/from ..bin import pyluxcore/import pyluxcore/g' $file; done
+ rm -rf ${pkgdir}/usr/share/blender/${_blender}/scripts/addons/${_name}/bin
+ rm -rf ${pkgdir}/usr/share/blender/${_blender}/scripts/addons/${_name}/.{git,github,gitignore}
+}
+
+# vim:set ts=2 sw=2 et: