updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / mm3d-svn / PKGBUILD
blobdd710878cdbeb84d0f22f3fda8ec118003e29d75
2 # Contributor: demonicmaniac <stormtrooperofdeath@gmx.net>
3 # Maintainer: Erico Nunes <nunes.erico[at]gmail>
5 pkgname=mm3d-svn
6 pkgver=440
7 pkgrel=2
8 pkgdesc="Misfit Model 3D is an easy to use OpenGL 3D model editor."
9 arch=(i686 x86_64)
10 url="http://www.misfitcode.com/"
11 license=('GPL')
12 depends=('libgl' 'qt' 'perl-template-toolkit' 'perl-html-template')
13 makedepends=('subversion')
15 #source=($pkgname-$pkgver.tar.gz)
16 #md5sums=()
18 _svntrunk=http://svn.misfitcode.com/misfitcode/mm3d/trunk
19 _svnmod=mm3d
21 build() {
22         cd "$srcdir"
24         if [ -d $_svnmod/.svn ]; then
25                 (cd $_svnmod && svn up -r $pkgver)
26         else
27                 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
28         fi
30         msg "SVN checkout done or server timeout"
31         msg "Starting make..."
33         rm -rf "$srcdir/$_svnmod-build"
34         cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
35         cd "$srcdir/$_svnmod-build"
37         #
38         # BUILD
39         #
41         ./autosetup.sh
42         ./configure --prefix=/usr
43         make || return 1
44         make DESTDIR="$pkgdir/" install