Date: Friday, September 8, 2017 @ 23:38:12 Author: wild Revision: 256455
upgpkg: dmd 1:2.076.0-2 Added documentation as requested by ticket FS#55508 Added: dmd/trunk/dmd-doc.desktop Modified: dmd/trunk/PKGBUILD -----------------+ PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++---------- dmd-doc.desktop | 7 +++++++ 2 files changed, 46 insertions(+), 10 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-09-08 22:05:22 UTC (rev 256454) +++ PKGBUILD 2017-09-08 23:38:12 UTC (rev 256455) @@ -7,27 +7,40 @@ # Contributor: Anders Bergh <ande...@gmail.com> # Contributor: Alexander Fehr <pizzapunk gmail com> -pkgname=('dmd' 'libphobos') +pkgname=('dmd' 'dmd-doc' 'libphobos') pkgdesc="D programming language compiler and standard library" groups=('dlang' 'dlang-dmd') pkgbase=dmd pkgver=2.076.0 -pkgrel=1 +pkgrel=2 epoch=1 arch=('x86_64') url="http://www.dlang.org" makedepends=('git' 'dmd') -source=("git+https://github.com/D-Programming-Language/dmd.git#tag=v$pkgver" - "git+https://github.com/D-Programming-Language/druntime.git#tag=v$pkgver" - "git+https://github.com/D-Programming-Language/phobos.git#tag=v$pkgver" - "dmd.conf") +source=("git+https://github.com/dlang/dmd.git#tag=v$pkgver" + "git+https://github.com/dlang/druntime.git#tag=v$pkgver" + "git+https://github.com/dlang/phobos.git#tag=v$pkgver" + "http://downloads.dlang.org/releases/2.x/$pkgver/dmd.$pkgver.linux.tar.xz" + "http://downloads.dlang.org/releases/2.x/$pkgver/dmd.$pkgver.linux.tar.xz.sig" + "dmd.conf" + "dmd-doc.desktop") sha256sums=('SKIP' 'SKIP' 'SKIP' - '3d639e89528fed1da90006f4dfb2b0fdc41308da5a96d953381ff4ccf257c035') + '3e3fc9fbdc61681edea837e9d095a341dda6c325ab4dbc437017239d576ba433' + 'SKIP' + '3d639e89528fed1da90006f4dfb2b0fdc41308da5a96d953381ff4ccf257c035' + '19c9cd3670bdef7fbde88de36c459d940e6b7bacc2a5e48aefbfd1b2c1895e07') +validpgpkeys=('AFC7DB45693D62BB472BF27BAB8FE924C2F7E724') # Martin Nowak <c...@dawg.eu> +noextract=("dmd.$pkgver.linux.tar.xz") +prepare() { + # We only want to extract the docs & samples, not the prebuild executables + tar xfJ "dmd.$pkgver.linux.tar.xz" dmd2/html +} + build() { - cd dmd/src + cd "$srcdir"/dmd make -f posix.mak RELEASE=1 PIC=1 cd "$srcdir"/druntime @@ -44,6 +57,7 @@ optdepends=( 'dtools: collection of useful utilities for development in D' 'gcc-multilib: to cross-compile 32-bit applications' + 'dmd-docs: documentation and sample code for D' ) provides=("d-compiler=$pkgver") license=('custom') @@ -60,11 +74,26 @@ install -Dm644 dmd/LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + find "$pkgdir"/usr -type f | xargs chmod 0644 + chmod 755 "$pkgdir"/usr/bin/* +} + +package_dmd-doc() { + pkgdesc="Documentation and sample code for D programming language" + depends=('dmd') + arch=('any') + license=('custom') + + mkdir -p "$pkgdir"/usr/share/applications + install -Dm644 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/ - find "$pkgdir"/usr -type f | xargs chmod 0644 - chmod 755 "$pkgdir"/usr/bin/* + mkdir -p "$pkgdir"/usr/share/d/html + cp -r dmd2/html/* "$pkgdir"/usr/share/d/html/ + + install -Dm644 dmd/LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } package_libphobos() { Added: dmd-doc.desktop =================================================================== --- dmd-doc.desktop (rev 0) +++ dmd-doc.desktop 2017-09-08 23:38:12 UTC (rev 256455) @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Application +Name=dmd/phobos documentation +Comment=dmd compiler and phobos library documentation +Exec=xdg-open /usr/share/d/html/d/language-reference.html +Icon=dmd-doc +Categories=Development;