milis/talimatname/genel/d/dub/talimat

21 lines
698 B
Plaintext
Raw Normal View History

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
2017-10-28 14:10:23 +02:00
isim=dub
surum=1.5.0
devir=1
kaynak=(https://github.com/dlang/dub/archive/v$surum.tar.gz::$isim-$surum.tar.gz)
2017-10-02 21:49:41 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-02 21:49:41 +02:00
DC=dmd
2017-10-28 14:10:23 +02:00
cd "$SRC/dub-$surum"
2017-10-02 21:49:41 +02:00
echo "module dub.version_;" > source/dub/version_.d
2017-10-28 14:10:23 +02:00
echo "enum dubVersion = \"$surum\";" >> source/dub/version_.d
$DC -ofbin/dub -w -O -g -surum=DubUseCurl -Isource -L-lcurl @build-files.txt
2017-10-02 21:49:41 +02:00
install -Dm755 "bin/dub" "$PKG/usr/bin/dub"
2017-10-28 14:10:23 +02:00
install -Dm644 "LICENSE.txt" "$PKG/usr/share/licenses/$isim/LICENSE"
2017-10-02 21:49:41 +02:00
install -Dm644 "scripts/bash-completion/dub.bash" "$PKG/usr/share/bash-completion/completions/dub"
}