aboutsummaryrefslogtreecommitdiffstats
path: root/blender-blam (not maintaining)
diff options
context:
space:
mode:
Diffstat (limited to 'blender-blam (not maintaining)')
-rw-r--r--blender-blam (not maintaining)/PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/blender-blam (not maintaining)/PKGBUILD b/blender-blam (not maintaining)/PKGBUILD
new file mode 100644
index 0000000..0e4a6b4
--- /dev/null
+++ b/blender-blam (not maintaining)/PKGBUILD
@@ -0,0 +1,42 @@
+pkgname=blender-blam
+pkgver=20130411
+pkgrel=1
+_blender=2.65
+pkgdesc="This is BLAM, a camera calibration toolkit for Blender in the form of an add-on, written in python, that facilitates modeling based on photographs."
+arch=('any')
+url="https://github.com/stuffmatic/blam/"
+license=('GPL')
+depends=('blender')
+makedepends=('coreutils')
+conflicts=()
+source=()
+md5sums=()
+
+_gitroot=https://github.com/stuffmatic/blam.git
+_gitname=blam
+
+build() {
+ cd "$srcdir"
+ msg "Connecting to GIT server...."
+
+ if [[ -d "$_gitname" ]]; then
+ cd "$_gitname" && git pull origin
+ msg "The local files are updated."
+ else
+ git clone "$_gitroot" "$_gitname"
+ fi
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting build..."
+
+ rm -rf "$srcdir/$_gitname-build"
+ git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
+ cd "$srcdir/$_gitname-build"
+}
+
+package() {
+ cd "$srcdir/$_gitname-build/src"
+ mkdir -p "$pkgdir/usr/share/blender/$_blender/scripts/"
+ cp blam.py "$pkgdir/usr/share/blender/$_blender/scripts/"
+}
+