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/" }