summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorbartus2018-12-06 12:46:25 +0100
committerbartus2018-12-06 13:25:23 +0100
commit588f49c086aad69808dc4acb1f4c589274bc3d2a (patch)
tree05dfafb3236291e7eecc5605e4fa96f0a65949a0 /PKGBUILD
downloadaur-588f49c086aad69808dc4acb1f4c589274bc3d2a.tar.gz
initial
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a9566ce63e3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
+
+#_fragment="#tag=blendluxcore_v2.1beta2"
+_blender=$(pacman -Sddp --print-format %v blender|grep -oP '(?<=\:)[[:digit:]]{1}\.[[:digit:]]{2}(?=\.)')
+_name="luxcorerender"
+
+pkgname=blender-plugin-${_name}-git
+pkgver=2.1beta3.r0.g3a66d89
+pkgrel=1
+pkgdesc="LuxCoreRender exporter plugin for Blender"
+arch=('any')
+url="http://www.luxrender.net/"
+license=('GPL')
+depends=(blender luxcorerender)
+makedepends=(git)
+conflicts=(luxblend25 luxblend25-hg blend-plugin-luxcorerender)
+provides=(blender-plugin-luxcorerender)
+source=("${_name}::git+https://github.com/LuxCoreRender/BlendLuxCore.git${_fragment}")
+md5sums=("SKIP")
+
+pkgver() {
+ cd ${srcdir}/${_name}
+# printf %s.r%s.g%s $_pkgver $(git rev-list blendluxcore_v2.0..HEAD --count) $(git log --pretty=format:'%h' -n 1)
+ 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 .* 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: