22 lines
718 B
Plaintext
22 lines
718 B
Plaintext
# Tanım: D programlama dili paket-kütüphane yöneticisi
|
||
# URL: https://github.com/dlang/dub
|
||
# Paketçi: milisarge
|
||
# Gerekler: dmd
|
||
# Grup: geliştirme
|
||
|
||
isim=dub
|
||
surum=1.5.0
|
||
devir=1
|
||
kaynak=(https://github.com/dlang/dub/archive/v$surum.tar.gz::$isim-$surum.tar.gz)
|
||
|
||
derle() {
|
||
DC=dmd
|
||
cd "$SRC/dub-$surum"
|
||
echo "module dub.version_;" > source/dub/version_.d
|
||
echo "enum dubVersion = \"$surum\";" >> source/dub/version_.d
|
||
$DC -ofbin/dub -w -O -g -surum=DubUseCurl -Isource -L-lcurl @build-files.txt
|
||
install -Dm755 "bin/dub" "$PKG/usr/bin/dub"
|
||
install -Dm644 "LICENSE.txt" "$PKG/usr/share/licenses/$isim/LICENSE"
|
||
install -Dm644 "scripts/bash-completion/dub.bash" "$PKG/usr/share/bash-completion/completions/dub"
|
||
}
|