summaryrefslogtreecommitdiff
path: root/community/ldc
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-06-05 00:33:46 -0700
committerroot <root@rshg054.dnsready.net>2013-06-05 00:33:46 -0700
commit91d3f2ebc9b69c3e24bd507890afbb4bd3f4eea3 (patch)
treea34b437b45b5977131ce84f74ac379d56dbba0c7 /community/ldc
parentcc57cb201ddb179d2bb481c13dd4f286ae643b12 (diff)
Wed Jun 5 00:33:46 PDT 2013
Diffstat (limited to 'community/ldc')
-rw-r--r--community/ldc/PKGBUILD32
1 files changed, 7 insertions, 25 deletions
diff --git a/community/ldc/PKGBUILD b/community/ldc/PKGBUILD
index 653997fd2..39c040f65 100644
--- a/community/ldc/PKGBUILD
+++ b/community/ldc/PKGBUILD
@@ -1,7 +1,7 @@
-# $Id: PKGBUILD 84438 2013-02-19 02:32:24Z svenstaro $
+# $Id: PKGBUILD 92338 2013-06-04 05:21:45Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
pkgname=ldc
-pkgver=20130219
+pkgver=20130604
pkgrel=1
pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D runtime and libphobos2"
arch=('i686' 'x86_64')
@@ -10,33 +10,15 @@ license=('BSD')
depends=('llvm' 'libconfig')
makedepends=('git' 'cmake')
backup=('etc/ldc2.conf')
-source=()
-md5sums=()
-
-_gitroot=git://github.com/ldc-developers/ldc.git
-_gitname=ldc
-_gitbranch=master
+source=("git://github.com/ldc-developers/ldc.git")
+sha1sums=('SKIP')
[[ $CARCH == "x86_64" ]] && _multilib="ON"
[[ $CARCH == "i686" ]] && _multilib="OFF"
build() {
- cd "$srcdir"
- msg "Connecting to GIT server...."
-
- if [[ -d "$_gitname" ]]; then
- cd "$_gitname" && git pull origin
- msg "The local files are updated."
- else
- git clone --branch "$_gitbranch" "$_gitroot" "$_gitname"
- fi
-
- msg "GIT checkout done or server timeout"
- msg "Starting build..."
-
- rm -rf "$srcdir/$_gitname-build"
- git clone --recursive "$srcdir/$_gitname" "$srcdir/$_gitname-build"
- cd "$srcdir/$_gitname-build"
+ cd "$srcdir"/ldc
+ git submodule update --init --recursive
mkdir build && cd build
cmake \
@@ -48,7 +30,7 @@ build() {
}
package() {
- cd "$srcdir/$_gitname-build"
+ cd "$srcdir"/ldc
cd build
make DESTDIR=$pkgdir install