1 # See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
2 # for more information on packaging from Mercurial(hg) sources.
4 # Contributor: Mathias Laurenz Baumann <marenzXfbuild@supradigital.org>
8 pkgdesc="Fork of rebuild/dsss, a build-system for D"
10 url="http://bitbucket.org/h3r3tic/xfbuild/"
14 makedepends=('mercurial')
23 md5sums=() #generate with 'makepkg -g'
25 _hgroot="http://bitbucket.org/h3r3tic"
30 msg "Connecting to Mercurial server...."
32 if [ -d $_hgrepo ] ; then
34 hg pull -u || return 1
35 msg "The local files are updated."
37 hg clone $_hgroot/xfbuild $_hgrepo || return 1
40 msg "Mercurial checkout done or server timeout"
41 msg "Starting make..."
43 rm -rf "$srcdir/$_hgrepo-build"
44 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
45 cd "$srcdir/$_hgrepo-build"
50 dmd $* -I../.. -L-ldl -ofxfbuild @modList.lst || return 1
52 cp xfbuild $pkgdir/bin/
57 #./configure --prefix=/usr
59 #make DESTDIR="$pkgdir/" install || return 1