1 # Maintainer: Dan Printzell <wild@archlinux.org>
2 # Maintainer: Filipe LaĆns (FFY00) <lains@archlinux.org>
3 # Contributor: Mihails Strasuns <public@dicebot.lv>
4 # Contributor: Moritz Maxeiner <moritz@ucworks.org>
9 pkgdesc="Developer package manager for D programming language"
11 url="https://github.com/dlang/dub"
16 source=("$pkgname-$pkgver.tar.gz::https://github.com/dlang/dub/archive/v$pkgver.tar.gz")
17 sha512sums=('6ed022c3b3ee8fbf77da6ee82c6074fb4cca02db187598185cf4340e1fc161cc1f29ac20d73481a69a5b7ab85875cfd6be66fc6582749816a4a531a84cc945cc')
22 GITVER=$pkgver DMD=ldmd2 ldmd2 -run build.d -release -O3 -linker=gold --flto=thin -link-defaultlib-shared=false -L--build-id
25 bin/dub --single scripts/man/gen_man.d
30 install -Dm755 "$pkgname-$pkgver/bin/dub" "$pkgdir/usr/bin/dub"
33 install -Dm644 "$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
35 # bash, fish and zsh completion
36 install -Dm644 "$pkgname-$pkgver/scripts/bash-completion/dub.bash" "$pkgdir/usr/share/bash-completion/completions/dub"
37 install -Dm644 "$pkgname-$pkgver/scripts/fish-completion/dub.fish" "$pkgdir/usr/share/fish/vendor_completions.d/dub.fish"
38 install -Dm644 "$pkgname-$pkgver/scripts/zsh-completion/_dub" "$pkgdir/usr/share/zsh/site-functions/_dub"
41 mkdir -p "$pkgdir"/usr/share/man/man1
42 cp "$pkgname-$pkgver"/scripts/man/*.1 "$pkgdir"/usr/share/man/man1/