updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xfbuild-hg / PKGBUILD
blobfb31515e08bd4b7914b1983b843d89151825a9a0
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>
5 pkgname=xfbuild-hg
6 pkgver=86
7 pkgrel=1
8 pkgdesc="Fork of rebuild/dsss, a build-system for D"
9 arch=('i686')
10 url="http://bitbucket.org/h3r3tic/xfbuild/"
11 license=('GPL')
12 groups=()
13 depends=()
14 makedepends=('mercurial')
15 provides=()
16 conflicts=()
17 replaces=()
18 backup=()
19 options=()
20 install=
21 source=()
22 noextract=()
23 md5sums=() #generate with 'makepkg -g'
25 _hgroot="http://bitbucket.org/h3r3tic"
26 _hgrepo="xfbuild"
28 build() {
29   cd "$srcdir"
30   msg "Connecting to Mercurial server...."
32   if [ -d $_hgrepo ] ; then
33     cd $_hgrepo
34     hg pull -u || return 1
35     msg "The local files are updated."
36   else
37     hg clone $_hgroot/xfbuild $_hgrepo || return 1
38   fi
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"
47   #
48   # BUILD HERE
49   #
50         dmd $* -I../..  -L-ldl -ofxfbuild @modList.lst || return 1
51         mkdir $pkgdir/bin
52         cp xfbuild $pkgdir/bin/
54 #  ./build.sh
56   #./autogen.sh
57   #./configure --prefix=/usr
58   #make || return 1
59   #make DESTDIR="$pkgdir/" install || return 1
60