1 # Contributor: BeholdMyGlory <larvid@gmail.com>
5 pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure"
7 url="http://www.dsource.org/projects/ldc"
10 makedepends=('libconfig' 'cmake' 'mercurial')
12 optdepends=('libtango-ldc-svn: Runtime library')
13 source=('CMakeLists.patch')
14 md5sums=('61be322267025571bd9261eb122af2d1')
16 _hgroot="http://hg.dsource.org/projects"
23 msg "Connecting to Mercurial server...."
25 if [ -d $_hgrepo ] ; then
26 cd $_hgrepo && hg pull -u
27 msg "The local files are updated."
29 hg clone $_hgroot/$_hgrepo
32 msg "Mercurial checkout done or server timeout"
33 msg "Starting make..."
37 patch CMakeLists.txt $srcdir/CMakeLists.patch
39 cmake -DCMAKE_CXX_FLAGS:string=-DLLVM_REV=84989 -DCMAKE_INSTALL_PREFIX=/usr ./ || return 1
41 make DESTDIR="$pkgdir/" install || return 1