summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbartus2019-08-28 17:44:17 +0200
committerbartus2019-08-28 17:44:17 +0200
commit9a89c744bf8a3284672766a36789d59d173acb8c (patch)
treef3d629f291f333671a007758c1d16c0183dbfc33
parent5794d3dfbae2fba8f2503378a5a429f028f26443 (diff)
downloadaur-9a89c744bf8a3284672766a36789d59d173acb8c.tar.gz
Move _blender version logic inside package() function.
-rw-r--r--PKGBUILD2
1 files changed, 1 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index a1330d5d960..f10de5421ca 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,5 @@
# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
-_blender=$(pacman -Sddp --print-format %v blender|grep -oP '(?<=\:)[[:digit:]]{1}\.[[:digit:]]{2}(?=\.)')
_name="luxcorerender"
pkgname=blender-plugin-${_name}
@@ -19,6 +18,7 @@ source=("https://github.com/LuxCoreRender/BlendLuxCore/archive/blendluxcore_v${_
sha256sums=('40a4727c2aa20cc610b00a0860ccd735cac39e658c157cb6a57fd630164369e3')
package() {
+ _blender=$(pacman -Sddp --print-format %v blender|grep -oP '(?<=\:)[[:digit:]]{1}\.[[:digit:]]{2}(?=)')
install -d -m755 ${pkgdir}/usr/share/blender/${_blender}/scripts/addons
cp -a ${srcdir}/BlendLuxCore-blendluxcore_v${_pkgver} ${pkgdir}/usr/share/blender/${_blender}/scripts/addons/${_name}
# change the search path in exporter so it finds pylux in its new location :(previous solution was much better, what happen to blendlux )