summaryrefslogtreecommitdiff
path: root/community/dmd/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/dmd/PKGBUILD')
-rw-r--r--community/dmd/PKGBUILD9
1 files changed, 7 insertions, 2 deletions
diff --git a/community/dmd/PKGBUILD b/community/dmd/PKGBUILD
index 79d4d0c51..c0e843c15 100644
--- a/community/dmd/PKGBUILD
+++ b/community/dmd/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 64556 2012-02-16 07:01:07Z svenstaro $
+# $Id: PKGBUILD 68172 2012-03-18 20:40:01Z svenstaro $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Chris Brannon <cmbrannon79@gmail.com>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
@@ -8,7 +8,7 @@
pkgname=('dmd' 'libphobos')
pkgbase=dmd
pkgver=2.058
-pkgrel=1
+pkgrel=2
pkgdesc="The Digital Mars D compiler"
arch=('i686' 'x86_64')
url="http://www.digitalmars.com/d/2.0/"
@@ -54,6 +54,9 @@ package_dmd() {
mkdir -p $pkgdir/usr/share/d/samples/
cp -r $srcdir/dmd2/samples/d/* $pkgdir/usr/share/d/samples/
+ find $pkgdir/usr -type f | xargs chmod 0644
+ chmod 755 $pkgdir/usr/bin/*
+
install -Dm755 $srcdir/D-Programming-Language-tools-*/rdmd $pkgdir/usr/bin/rdmd
}
@@ -70,6 +73,8 @@ package_libphobos() {
mkdir -p $pkgdir/usr/share/doc/d/
cp -r $srcdir/dmd2/html $pkgdir/usr/share/doc/d/
+ find $pkgdir/usr -type f | xargs chmod 0644
+
install -Dm644 $srcdir/dmd2/src/druntime/LICENSE_1_0.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE-druntime
install -Dm644 $srcdir/dmd2/src/phobos/phoboslicense.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE-phobos
}