diff options
Diffstat (limited to 'community/dub/APKBUILD')
-rw-r--r-- | community/dub/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/community/dub/APKBUILD b/community/dub/APKBUILD new file mode 100644 index 00000000000..570978ea6a3 --- /dev/null +++ b/community/dub/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Mathias LANG <pro.mathias.lang@gmail.com> +# Maintainer: Mathias LANG <pro.mathias.lang@gmail.com> +pkgname=dub +pkgver=1.35.1 +pkgrel=0 +pkgdesc="Package and build management system for D" +url="https://code.dlang.org/" +arch="x86_64 aarch64" +license="MIT" +depends="libcurl" +makedepends="chrpath ldc bash curl-dev" +subpackages="$pkgname-zsh-completion $pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/dlang/dub/archive/v$pkgver.tar.gz" + +build() { + # The build script needs a DMD-like interface to pass its arguments, so use ldmd2 + DMD=ldmd2 GITVER="v$pkgver" ldc2 -run "$builddir/build.d" + + # Build man pages + "$builddir/bin/dub" --compiler=ldc2 --single scripts/man/gen_man.d + + # Remove redundant rpath + chrpath -d "$builddir/bin/dub" +} + +check() { + bin/dub test --compiler=ldc2 +} + +package() { + install -s -D "$builddir/bin/dub" "$pkgdir/usr/bin/dub" + install -Dm644 "$builddir/scripts/zsh-completion/_dub" "$pkgdir/usr/share/zsh/site-functions/_dub" + mkdir -p "$pkgdir/usr/share/man/man1/" + cp "$builddir"/scripts/man/*.1 "$pkgdir/usr/share/man/man1/" +} + +sha512sums=" +a371a7ec7003a4a4fb642a3567fce0685c99f4940a02de94d026bdc6fe4e84512b16e4bb57673da4d3b8e25177cc3df329da41862086cecc7b98aec1ebf9e4e7 dub-1.35.1.tar.gz +" |