updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / cal3d-svn / PKGBUILD
blobbbb989faf51ed56942734c22142dedd9173cced0
1 # Contributor: Hussam Al-Tayeb <ht990332@gmail.com>
2 # Contributor: Simon Atkins <bonzodog01 at gmail dot com>
4 pkgname=cal3d-svn
5 pkgver=507
6 pkgrel=1
7 pkgdesc="A skeletal-based 3D character animation library, revision 507 for best compatibility with the games in our repo."
8 url="https://gna.org/projects/cal3d"
9 arch=('i686' 'x86_64')
10 license=(GPL2)
11 makedepends=('subversion')
12 provides=('cal3d')
13 conflicts=('cal3d')
14 options=(!libtool)
15 source=()
16 md5sums=('')
17      
18 _svntrunk=svn://svn.gna.org/svn/cal3d/trunk/cal3d
19 _svnmod=cal3d
20      
21 build() {
23   #Grab the sources with svn
24   cd $srcdir
25   if [ -d $_svnmod/.svn ]; then
26     (cd $_svnmod && svn up -r $pkgver) || return 1
27   else
28     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod || return 1
29   fi
30   msg "SVN checkout done or server timeout"
31   msg "Starting make..."
32   rm -r $srcdir/$_svnmod-build
33   cp -r $srcdir/$_svnmod $srcdir/$_svnmod-build
34   cd $srcdir/$_svnmod-build
36   #Patch, build and install the package
37   sed -i 's/AM_USE_UNITTESTCPP/# AM_USE_UNITTESTCPP/' configure.in || return 1
38   autoreconf --install --force
39   ./configure
40   make || return 1
41   make DESTDIR=$pkgdir/ install || return 1
42   
43   rm -rf $srcdir/$_svnmod-build 
44   
47 # vim:set ts=2 sw=2 et: