From 6babd93feb5a407b81e646185efb1a99602d5486 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 11 Apr 2013 02:08:41 +0200 Subject: A working version of blender-blam MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- blender-blam (not maintaining)/PKGBUILD | 42 +++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 blender-blam (not maintaining)/PKGBUILD 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/" +} + -- cgit v1.2.3-70-g09d2