1 # Maintainer: Gianni Vialetto <gianni at rootcube dot net>
6 pkgdesc="A LLVM based compiler for the D programming language"
8 url="http://ldc-developers.github.com/ldc"
10 depends=('libconfig' 'llvm>=3.0')
13 backup=('etc/ldc2.conf' 'etc/ldc2.rebuild.conf')
14 options=('!emptydirs makeflags')
16 _gitroot=https://github.com/ldc-developers/ldc.git
22 msg "Connecting to GIT repository $_gitroot..."
24 if [ -d $startdir/src/$_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
31 msg "GIT checkout done or server timeout"
33 cd "$srcdir/$_gitname"
34 msg "Initializing/Updating GIT submodules..."
35 git submodule init && git submodule update
36 msg "Creating cmake build directory..."
37 if [ ! -d build ]; then mkdir build; fi
38 cd build && cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
44 cd "$srcdir/$_gitname/build"
45 make DESTDIR="$pkgdir" install