updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / derelict-ldc-svn / PKGBUILD
blob121801710441cf48eda8a2923b5539d0c73d8dba
1 # author: MrSunshine
2 pkgname=derelict-ldc-svn
3 pkgver=320
4 pkgrel=1
5 pkgdesc="Derelict is a collection of D bindings to C shared (dynamic) libraries which are useful for multimedia applications, with a heavy bias toward game development-related libraries."
6 arch=('i686' 'x86_64')
7 url="http://www.dsource.org/projects/ldc"
8 license=('BSD')
9 depends=('ldc-tango')
10 makedepends=('ldc-tango' 'gcc' 'subversion' 'dsss')
11 #provides=()
12 #conflicts=()
13 source=(derelict.patch)
14 #install=(${pkgname}.install)
15 md5sums=('c13daeefd701637c10c4454dbc68bdcf') 
17 _svntrunk=http://svn.dsource.org/projects/derelict/trunk
18 _svnmod=derelict
20 build() {
21         cd $srcdir
23         if [ -d ${_svnmod} ]; then
24                 cd ${startdir}/src/${_svnmod}
25                 svn up
26         else
27                 svn co ${_svntrunk} ${_svnmod} -r${pkgver} || return 1
28         fi
30         cd ${startdir}/src/${_svnmod}
32         patch -p0 -t -N -i ${startdir}/derelict.patch
34         cd ${startdir}/src/${_svnmod}
35         dsss build -dc=ldc-posix-tango --prefix=${startdir}/src/tmp
36         dsss install -dc=ldc-posix-tango --prefix=${startdir}/pkg/usr --libdir=${startdir}/pkg/usr/lib/ldc
37         chmod +r ${startdir}/pkg/usr/share/dsss/manifest/derelict.manifest