summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbartus2019-10-09 09:23:10 +0200
committerbartus2019-10-09 09:23:10 +0200
commitabd951ff075470751108fadf4d7a991364ede3b5 (patch)
tree97fb7258a58ed96712e62d7d4aaebe5c2d63ce8f
parentada725f43faa0dc9cecc4662daf5da4e02a16d4c (diff)
downloadaur-abd951ff075470751108fadf4d7a991364ede3b5.tar.gz
Port blender-2.8 version to blender-2.7
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD27
2 files changed, 24 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4c54c1d272b..a36f22b6219 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,17 @@
-pkgbase = blender-plugin-luxcorerender
- pkgdesc = LuxCoreRender exporter plugin for Blender
- pkgver = 2.2
+pkgbase = blender-2.7-plugin-luxcorerender
+ pkgdesc = LuxCoreRender exporter plugin for Blender 2.7
+ pkgver = 2.2beta2.r24.ga5d7d33
pkgrel = 1
- epoch = 2
url = https://luxcorerender.org/
arch = any
license = GPL
+ makedepends = git
conflicts = luxblend25
conflicts = luxblend25-hg
- source = https://github.com/LuxCoreRender/BlendLuxCore/archive/blendluxcore_v2.2.tar.gz
- sha256sums = 92c2a1669f23bca58b3bef324676d1849775d996c96b8c35af1a97a0fed4e27e
+ source = luxcorerender::git+https://github.com/LuxCoreRender/BlendLuxCore.git#branch=2_79_maintenance
+ sha256sums = SKIP
-pkgname = blender-plugin-luxcorerender
- depends = blender
+pkgname = blender-2.7-plugin-luxcorerender
+ depends = blender-2.7
depends = luxcorerender
diff --git a/PKGBUILD b/PKGBUILD
index 30be517561a..3604208c77c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,31 @@
# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
_name="luxcorerender"
+_fragment="#branch=2_79_maintenance"
-pkgname=blender-plugin-${_name}
-pkgver=2.2
-#_rel="rc1"
-[ -n "${_rel}" ] && _pkgver=${pkgver}${_rel} && pkgver+=".${_rel}" || _pkgver=${pkgver}
-epoch=2
+pkgname=blender-2.7-plugin-${_name}
+pkgver=2.2beta2.r24.ga5d7d33
pkgrel=1
-pkgdesc="LuxCoreRender exporter plugin for Blender"
+pkgdesc="LuxCoreRender exporter plugin for Blender 2.7"
arch=('any')
url="https://luxcorerender.org/"
license=('GPL')
conflicts=(luxblend25 luxblend25-hg)
-source=("https://github.com/LuxCoreRender/BlendLuxCore/archive/blendluxcore_v${_pkgver}.tar.gz")
-sha256sums=('92c2a1669f23bca58b3bef324676d1849775d996c96b8c35af1a97a0fed4e27e')
+makedepends=(git)
+source=("${_name}::git+https://github.com/LuxCoreRender/BlendLuxCore.git${_fragment}")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd ${srcdir}/${_name}
+ [ -v _ver_tag ] && printf %s.r%s.g%s ${_ver_tag#blendluxcore_v} $(git rev-list ${_ver_tag}..HEAD --count) $(git log --pretty=format:'%h' -n 1) \
+ || git describe --long --tags | sed 's/^blendluxcore_v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
package() {
- depends=(blender luxcorerender)
- _blender=$(pacman -Sddp --print-format %v blender|grep -oP '(?<=\:)[[:digit:]]{1}\.[[:digit:]]{2}(?=)')
+ depends=(blender-2.7 luxcorerender)
+ _blender="2.79"
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}
+ cp -a ${srcdir}/${_name} ${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 )
#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