From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/ldc/PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 community/ldc/PKGBUILD (limited to 'community/ldc') diff --git a/community/ldc/PKGBUILD b/community/ldc/PKGBUILD new file mode 100644 index 000000000..e03404d17 --- /dev/null +++ b/community/ldc/PKGBUILD @@ -0,0 +1,47 @@ +# $Id: PKGBUILD 92773 2013-06-15 01:02:41Z svenstaro $ +# Maintainer: Sven-Hendrik Haase +pkgname=ldc +pkgver=0.11.0 +epoch=1 +pkgrel=1 +pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D runtime and libphobos2" +arch=('i686' 'x86_64') +url="http://www.dsource.org/projects/ldc" +license=('BSD') +depends=('llvm' 'libconfig') +makedepends=('git' 'cmake') +backup=('etc/ldc2.conf') +source=("git://github.com/ldc-developers/ldc.git#tag=v${pkgver}") +sha1sums=('SKIP') + +[[ $CARCH == "x86_64" ]] && _multilib="ON" +[[ $CARCH == "i686" ]] && _multilib="OFF" + +build() { + cd "$srcdir"/ldc + git submodule update --init --recursive + + mkdir build && cd build + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DINCLUDE_INSTALL_DIR=/usr/include/d/std-ldc \ + -DMULTILIB=$_multilib \ + .. + make +} + +package() { + cd "$srcdir"/ldc + + cd build + make DESTDIR=$pkgdir install + cd .. + + mkdir -p $pkgdir/usr/share/bash-completion/ + mv $pkgdir/etc/bash_completion.d $pkgdir/usr/share/bash-completion/completions + + install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE + + # We don't actually want the multilib libs in this package + rm -rf $pkgdir/usr/lib32 +} -- cgit v1.2.3-54-g00ecf