aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-04-11 02:08:41 +0200
committerMattias Andrée <maandree@operamail.com>2013-04-11 02:08:41 +0200
commit6babd93feb5a407b81e646185efb1a99602d5486 (patch)
tree7967e44d22ecd7370c189fb8c6cd1d14ae117c1b
parentmore packages (diff)
downloadaur-packages-6babd93feb5a407b81e646185efb1a99602d5486.tar.gz
aur-packages-6babd93feb5a407b81e646185efb1a99602d5486.tar.bz2
aur-packages-6babd93feb5a407b81e646185efb1a99602d5486.tar.xz
A working version of blender-blam
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-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/"
+}
+