updated on Wed Jan 25 20:08:56 UTC 2012
[aur-mirror.git] / qtd-hg / PKGBUILD
blobdcdc55a0d568d532f6cb409b6aabe638ff3ae22a
1 pkgname=qtd-hg
2 pkgver=20100814
3 pkgrel=1
4 pkgdesc="Bindings of Qt GUI library to D programming language"
5 arch=('i686' 'x86_64')
6 url="http://www.dsource.org/projects/qtd"
7 license=("Boost")
8 depends=('dmd2' 'libphobos2' 'qt')
9 makedepends=('mercurial')
10 provides=('qtd')
11 conflicts=('qtd')
12 options=('!makeflags')
14 _hgrepo=http://hg.dsource.org/projects/qtd/
15 _hgmod=qtd
17 build() {
18   
19   if [ -d $_hgmod/.hg ]; then
20     (cd $_hgmod && hg pull )
21   else
22     hg clone $_hgrepo $_hgmod
23   fi
25   msg "hg checkout done or server timeout"
27   cd $srcdir/$_hgmod
29   # enter build directory
30   if [ -d build_dir ]; then
31     cd build_dir
32   else
33     mkdir build_dir
34     cd build_dir
35   fi
37   # overwrite makepkg.conf flags as those may kill the compile -.-
38   unset CFLAGS
39   unset CXXFLAGS
41   cmake -DCMAKE_INSTALL_PREFIX=/usr ../
43   make || return 1
44   DESTDIR=${pkgdir} make install || return 1