summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBastian Pukallus2020-04-03 12:55:11 +0200
committerBastian Pukallus2020-04-03 12:55:11 +0200
commit28c8065438862a1d414e6d25241e8635bd9aaa3a (patch)
tree7a16e291cd5b68911e7b313f009a43e15f7e03e7 /PKGBUILD
parent852e480504979d750068074ee6863a348a8baffc (diff)
downloadaur-blender-plugin-fspy.tar.gz
Enable blender 2.8x support
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD17
1 files changed, 5 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 63ac558c994..0d51ea4f068 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,13 @@
# Maintainer: Bastian Pukallus <bplinux at posteo de>
pkgname='blender-plugin-fspy'
-pkgver='1.0.2'
-pkgrel=1
+pkgver='1.0.3'
+pkgrel=2
pkgdesc="blender addon for supporting fSpy project files"
arch=('any')
url="https://github.com/stuffmatic/fSpy-Blender"
license=('GPL')
-depends=()
+depends=('blender>=2.8')
makedepends=()
provides=()
options=()
@@ -15,19 +15,12 @@ install=
changelog=
source=("https://github.com/stuffmatic/fSpy-Blender/releases/download/v$pkgver/fSpy-Blender-$pkgver.zip")
noextract=()
-sha256sums=("8449f213a52c0722b8ec0f0e844d06cac82446c26d22f9a52001e61c65e4fa16")
+sha256sums=("ac10ee2b02f832d7d985928b4e10ff82f82e34e3245777fd4bd3615647e8f207")
package() {
- _bl1="/usr/bin/blender"
- _bl2="/usr/bin/blender-2.8"
- if [ -e "$_bl1" ]; then
- _version=$(blender -v | head -n1 | cut -f2 -d ' ')
+ _version=$(blender -v | head -n1 | cut -f2 -d ' ')
- elif [ -e "$_bl2" ]; then
- _version=$(blender-2.8 -v | head -n1 | cut -f2 -d ' ')
- fi
-
_addons="$pkgdir/usr/share/blender/$_version/scripts/addons/fspy"
cd "$srcdir/$(ls -d */)"