diff options
author | root <root@rshg054.dnsready.net> | 2013-10-03 02:49:10 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-10-03 02:49:10 -0700 |
commit | 7a89bde7057dae1b2a87ff0906dc797ebb4b2fc3 (patch) | |
tree | 8fe283205ef45a8d5a61a0f0e60b8bd0f2806dbd /community/dub | |
parent | ccdfb7506009a95df3049db791408ac9b291b6e2 (diff) |
Thu Oct 3 02:46:37 PDT 2013
Diffstat (limited to 'community/dub')
-rw-r--r-- | community/dub/PKGBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/community/dub/PKGBUILD b/community/dub/PKGBUILD new file mode 100644 index 000000000..b092a0b07 --- /dev/null +++ b/community/dub/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Mihails Strasuns <public@dicebot.lv> +# Contributor: Moritz Maxeiner <moritz@ucworks.org> +pkgname=dub +pkgver=0.9.18 +pkgrel=1 +pkgdesc="Developer package manager for D programming language" +arch=('i686' 'x86_64') +url="https://github.com/rejectedsoftware/dub" +license=('MIT') +makedepends=('dmd' 'libphobos-devel' 'git') +depends=('d-compiler' 'd-runtime' 'curl') +source=("git+http://github.com/rejectedsoftware/dub.git#tag=v$pkgver") +sha256sums=('SKIP') + +build() +{ + cd "${srcdir}/${pkgname}" + GITVER=$(git describe) || GITVER=unknown + echo "module dub.version_; enum dubVersion = \"$GITVER\";" > source/dub/version_.d + dmd -ofbin/dub -g -debug -w -Isource -L-lcurl @build-files.txt +} + +package() +{ + cd "${srcdir}/${pkgname}" + install -D -m755 bin/dub "${pkgdir}/usr/bin/dub" + install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" +} |