summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
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 00000000000..a240a969711
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer : bartus <arch-user-repoᘓbartus.33mail.com>
+
+name=light-studio
+git_name=blender-${name}
+git_user_name=leomoon-studios
+_blender=$(expac -S %v blender|grep -oP '(?<=\:)[[:digit:]]{1}\.[[:digit:]]{2}(?=\.)')
+
+pkgname=blender-plugin-${name}-git
+pkgver=r52.5077528
+pkgrel=1
+pkgdesc="Blender addon adding studio lights setup."
+arch=('any')
+url="https://github.com/${git_user_name}/${git_name}"
+license=('GPL')
+makedepends=('expac' 'git')
+#install="${pkgname}.install"
+source=("${name}::git+https://github.com/${git_user_name}/${git_name}.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$name"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+package() {
+depends=('blender')
+ cd ${srcdir}
+ addons="$pkgdir/usr/share/blender/${_blender}/scripts/addons"
+ install -dm755 ${addons}/${name}
+ cp -a -t ${addons}/${name} ${name}/src/*
+ install -Dm644 ${name}/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et: