summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorEric Engestrom2020-12-20 17:19:15 +0100
committerEric Engestrom2020-12-20 17:19:15 +0100
commit76a5d2a6e728775509ab7e162320aa93214846de (patch)
treec3d249d723eff6b69a8067fb29218d44eadafa13 /PKGBUILD
downloadaur-blender-plugin-edgeflow-git.tar.gz
initial commit - v0.5+1.gcdb9436674
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..fe9211178e19
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>
+
+pkgname=blender-plugin-edgeflow-git
+pkgver=0.5+1.gcdb9436674
+pkgrel=1
+pkgdesc="Blender tools for working with edgeloops"
+url="https://github.com/BenjaminSauder/EdgeFlow"
+arch=('any')
+license=('GPL3')
+depends=('blender' 'python')
+makedepends=('git')
+provides=('blender-plugin-edgeflow')
+conflicts=('blender-plugin-edgeflow')
+source=("$pkgname::git+$url")
+sha256sums=('SKIP')
+_blenderver=$(blender -v | head -n1 | cut -f2 -d ' ' | sed 's/\.0$//')
+
+pkgver() {
+ git -C "$srcdir/$pkgname" describe --tags --abbrev=10 | sed 's/-/+/; s/-/./'
+#echo $(git rev-list --count master).$(git rev-parse --short master)
+}
+
+build() {
+ # we don't care about those and they're extremely heavy
+ rm -rf "$srcdir/$pkgname"/docs
+}
+
+package() {
+ install -dm755 "$pkgdir/usr/share/blender/$_blenderver/scripts/addons/edgeflow/"
+ install -Dm644 "$srcdir/$pkgname"/* "$pkgdir/usr/share/blender/$_blenderver/scripts/addons/edgeflow/"
+
+ install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
+ install -Dm644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}