From 6aeb515f4afd10afb53b21df18d03b0d5f3a200f Mon Sep 17 00:00:00 2001 From: root Date: Sat, 7 Jan 2012 23:14:43 +0000 Subject: Sat Jan 7 23:14:43 UTC 2012 --- community/dmd/PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 community/dmd/PKGBUILD (limited to 'community/dmd/PKGBUILD') diff --git a/community/dmd/PKGBUILD b/community/dmd/PKGBUILD new file mode 100644 index 000000000..43ecb19f7 --- /dev/null +++ b/community/dmd/PKGBUILD @@ -0,0 +1,44 @@ +# $Id: PKGBUILD 61677 2012-01-06 12:49:05Z cbrannon $ +# Maintainer: Chris Brannon +# Contributor: Andrea Scarpino +# Contributor: Anders Bergh +# Contributor: Alexander Fehr + +pkgname=dmd +pkgver=1.072 +pkgrel=1 +pkgdesc="The Digital Mars D compiler." +arch=('i686' x86_64) +url="http://www.digitalmars.com/d/1.0/" +source=(http://ftp.digitalmars.com/$pkgname.$pkgver.zip) +install='dmd.install' +provides=('d-compiler') +license=('custom') +options=('!strip') +depends=(gcc-libs) +optdepends=('libphobos: D standard runtime library' + 'libtango: Alternative runtime library') + +[[ $CARCH == "x86_64" ]] && makedepends=("${makedepends[@]}" 'gcc-multilib' 'lib32-glibc') + +build() { + # Copy the license. + install -Dm644 "$srcdir/dmd/license.txt" "$pkgdir/usr/share/licenses/dmd/LICENSE" || return 1 + + if [ $CARCH == x86_64 ]; then + cd "$srcdir/dmd/linux/bin64" + else + cd "$srcdir/dmd/linux/bin32" + fi + install -dm755 "$pkgdir/usr/bin" + install -m755 dmd rdmd dumpobj obj2asm "$pkgdir/usr/bin" + + for x in "$srcdir"/dmd/man/man1/*.1; do + install -Dm644 "$x" "$pkgdir/usr/share/man/man1/$(basename "$x")" || return 1 + done + + for x in "$srcdir"/dmd/man/man1/*.5; do + install -Dm644 "$x" "$pkgdir/usr/share/man/man5/$(basename "$x")" || return 1 + done +} +md5sums=('d5489b94f06c7ca2f4b5de62f7e6815a') -- cgit v1.2.3-54-g00ecf