updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / d-lib-arc / PKGBUILD
blob34051166a5406dd58aec78752e836e621b8523f6
1 # Contributor: Brix <brix@brix-verden.dk>
3 pkgname=d-lib-arc
4 pkgver=1607
5 pkgrel=1
6 pkgdesc="ArcLib is a library for creating 2D games, for the D Programming Language."
7 url="http://dsource.org/projects/arclib"
8 depends=('d-lib-derelict')
9 makedepends=('subversion')
10 arch=('i686', 'x86_64')
11 license=('custom')
12 source=('arc-tango.patch')
13 md5sums=('9172e750ea24b6a9d7cb5e7ab0aa686c')
15 _svntrunk=http://svn.dsource.org/projects/arclib/trunk/
16 _svnmod=arclib
18 build() {
19   cd ${srcdir}
20   
21   if [ -d $_svnmod/.svn ]; then
22     (cd $_svnmod && svn up)
23   else
24     svn co $_svntrunk --config-dir ./ $_svnmod
25   fi
26   
27   msg "SVN checkout done or server timeout"
28   
29   cd $_svnmod
30   
31   patch -p0 < ${srcdir}/arc-tango.patch
32   
33   mkdir -p ${pkgdir}/usr/include/d
34   
35   cp -r arc ${pkgdir}/usr/include/d || return 1
36   
37   find ${pkgdir} -depth -type d -name ".svn" -exec rm -r {} ';'