2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: D programlama dili paket-kütüphane yöneticisi
|
2017-10-02 21:49:41 +02:00
|
|
|
|
# URL: https://github.com/dlang/dub
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: dmd
|
2017-10-02 21:49:41 +02:00
|
|
|
|
|
|
|
|
|
name=dub
|
|
|
|
|
version=1.5.0
|
|
|
|
|
release=1
|
|
|
|
|
source=(https://github.com/dlang/dub/archive/v$version.tar.gz::$name-$version.tar.gz)
|
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-10-02 21:49:41 +02:00
|
|
|
|
DC=dmd
|
|
|
|
|
cd "$SRC/dub-$version"
|
|
|
|
|
echo "module dub.version_;" > source/dub/version_.d
|
|
|
|
|
echo "enum dubVersion = \"$version\";" >> source/dub/version_.d
|
|
|
|
|
$DC -ofbin/dub -w -O -g -version=DubUseCurl -Isource -L-lcurl @build-files.txt
|
|
|
|
|
install -Dm755 "bin/dub" "$PKG/usr/bin/dub"
|
|
|
|
|
install -Dm644 "LICENSE.txt" "$PKG/usr/share/licenses/$name/LICENSE"
|
|
|
|
|
install -Dm644 "scripts/bash-completion/dub.bash" "$PKG/usr/share/bash-completion/completions/dub"
|
|
|
|
|
}
|