Date: Friday, January 5, 2018 @ 13:34:45
  Author: wild
Revision: 278957

upgpkg: dmd 1:2.078.0-1

Updated to 2.078.0

Modified:
  dmd/trunk/PKGBUILD

----------+
 PKGBUILD |   42 +++++++++++++++++++++++-------------------
 1 file changed, 23 insertions(+), 19 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-01-05 13:32:50 UTC (rev 278956)
+++ PKGBUILD    2018-01-05 13:34:45 UTC (rev 278957)
@@ -11,7 +11,7 @@
 pkgdesc="D programming language compiler and standard library"
 groups=('dlang' 'dlang-dmd')
 pkgbase=dmd
-pkgver=2.077.1
+pkgver=2.078.0
 pkgrel=1
 epoch=1
 arch=('x86_64')
@@ -27,7 +27,7 @@
 sha256sums=('SKIP'
             'SKIP'
             'SKIP'
-            '075882fab8d3602d58148fa51500759819327ab42519c9a75f1b922c8afad423'
+            '651a6bf34bd23b893b8cb38a5b7783275145c047eef83c526730ba9394123c64'
             'SKIP'
             '3d639e89528fed1da90006f4dfb2b0fdc41308da5a96d953381ff4ccf257c035'
             '19c9cd3670bdef7fbde88de36c459d940e6b7bacc2a5e48aefbfd1b2c1895e07')
@@ -41,13 +41,13 @@
 
 build() {
     cd "$srcdir"/dmd
-    make -f posix.mak RELEASE=1 PIC=1
+    make -f posix.mak BUILD=release RELEASE=1 PIC=1
 
     cd "$srcdir"/druntime
-    make -f posix.mak DMD="$srcdir"/dmd/src/dmd RELEASE=1 PIC=1
+    make -f posix.mak DMD="$srcdir"/dmd/generated/linux/release/*/dmd 
BUILD=release RELEASE=1 PIC=1
 
     cd "$srcdir"/phobos
-    make -f posix.mak DMD="$srcdir"/dmd/src/dmd RELEASE=1 PIC=1
+    make -f posix.mak DMD="$srcdir"/dmd/generated/linux/release/*/dmd 
BUILD=release RELEASE=1 PIC=1
 }
 
 package_dmd() {
@@ -62,17 +62,19 @@
     provides=("d-compiler=$pkgver")
     license=('Boost')
 
-    install -Dm755 dmd/src/dmd "$pkgdir"/usr/bin/dmd
+    cd "$srcdir"/dmd
 
+    install -Dm755 "$srcdir"/dmd/generated/linux/release/*/dmd 
"$pkgdir"/usr/bin/dmd
+
     mkdir -p "$pkgdir"/etc
-    install -Dm644 dmd.conf "$pkgdir"/etc/dmd.conf
+    install -Dm644 "$srcdir"/dmd.conf "$pkgdir"/etc/dmd.conf
 
     mkdir -p "$pkgdir"/usr/share/man/man1
     mkdir -p "$pkgdir"/usr/share/man/man5
-    cp -r dmd/docs/man/man1/* "$pkgdir"/usr/share/man/man1/
-    cp -r dmd/docs/man/man5/* "$pkgdir"/usr/share/man/man5/
+    cp -r docs/man/man1/* "$pkgdir"/usr/share/man/man1/
+    cp -r docs/man/man5/* "$pkgdir"/usr/share/man/man5/
 
-    install -Dm644 dmd/LICENSE.txt 
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+    install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 
     find "$pkgdir"/usr -type f | xargs chmod 0644
     chmod 755 "$pkgdir"/usr/bin/*
@@ -83,16 +85,18 @@
     depends=('dmd')
     license=('Boost')
 
+    cd "$srcdir"/dmd
+
     mkdir -p "$pkgdir"/usr/share/applications
-    install -Dm644 dmd-doc.desktop 
"$pkgdir"/usr/share/applications/dmd-doc.desktop
+    install -Dm644 "$srcdir"/dmd-doc.desktop 
"$pkgdir"/usr/share/applications/dmd-doc.desktop
 
     mkdir -p "$pkgdir"/usr/share/d/samples/
-    cp -r dmd/samples/* "$pkgdir"/usr/share/d/samples/
+    cp -r samples/* "$pkgdir"/usr/share/d/samples/
 
     mkdir -p "$pkgdir"/usr/share/d/html
-    cp -r dmd2/html/* "$pkgdir"/usr/share/d/html/
+    cp -r "$srcdir"/dmd2/html/* "$pkgdir"/usr/share/d/html/
 
-    install -Dm644 dmd/LICENSE.txt 
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+    install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
 package_libphobos() {
@@ -105,14 +109,14 @@
     license=('Boost')
 
     mkdir -p "$pkgdir"/usr/lib
-    install -Dm644 phobos/generated/linux/release/*/libphobos2.{a,so} 
"$pkgdir"/usr/lib/
-    install -Dm644 phobos/LICENSE_1_0.txt 
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+    cp -P $(find "$srcdir"/{druntime,phobos}/generated/linux/release/ \( 
-iname "*.a" -a \! -iname "*.so.a" \) -o \( -iname "*.so*" -a \! -iname "*.o" 
-a \! -iname "*.a" \) ) "$pkgdir"/usr/lib
 
     mkdir -p "$pkgdir"/usr/include/dlang/dmd
-    cp -r phobos/{*.d,etc,std} "$pkgdir"/usr/include/dlang/dmd
-    cp -r druntime/import/* "$pkgdir"/usr/include/dlang/dmd/
+    cp -r "$srcdir"/phobos/{*.d,etc,std} "$pkgdir"/usr/include/dlang/dmd
+    cp -r "$srcdir"/druntime/import/* "$pkgdir"/usr/include/dlang/dmd/
 
     find "$pkgdir"/usr -type f | xargs chmod 0644
 
-    install -Dm644 druntime/LICENSE 
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE-druntime
+    install -Dm644 "$srcdir"/druntime/LICENSE 
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE-druntime
+    install -Dm644 "$srcdir"/phobos/LICENSE_1_0.txt 
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }

Reply via email to