blob: 32a3863382c5efb2abdfef272e79517fe3b82049 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer:(Arch) Mihails Strasuns <public@dicebot.lv>
# Contributor (Arch): Moritz Maxeiner <moritz@ucworks.org>
# Maintainer: André Silva <emulatorman@parabola.nu>
pkgname=dub
pkgver=0.9.23
pkgrel=2.parabola1
pkgdesc="Developer package manager for D programming language (built with gdc and libgphobos-devel)"
arch=('i686' 'x86_64')
url="https://github.com/D-Programming-Language/dub"
license=('MIT')
makedepends=('gdc' 'libgphobos-devel' 'git')
depends=('curl')
source=(
"git+https://github.com/D-Programming-Language/dub.git#tag=v$pkgver"
)
sha256sums=(
'SKIP'
)
build()
{
DC=gdmd
cd "${srcdir}/${pkgname}"
echo Generating version file...
GITVER=$(git describe) || GITVER=unknown
echo "module dub.version_;" > source/dub/version_.d
echo "enum dubVersion = \"$GITVER\";" >> source/dub/version_.d
echo "enum initialCompilerBinary = \"$DC\";" >> source/dub/version_.d
$DC -ofbin/dub -w -g -version=DubUseCurl -Isource -L-lcurl @build-files.txt
}
package()
{
cd "${srcdir}/${pkgname}"
install -D -m755 bin/dub "${pkgdir}/usr/bin/dub"
install -D -m644 scripts/bash-completion/dub.bash $pkgdir/usr/share/bash-completion/completions/dub
install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
}
|