talimat 718 B

12345678910111213141516171819202122
  1. # Tanım: D programlama dili paket-kütüphane yöneticisi
  2. # URL: https://github.com/dlang/dub
  3. # Paketçi: milisarge
  4. # Gerekler: dmd
  5. # Grup: geliştirme
  6. isim=dub
  7. surum=1.5.0
  8. devir=1
  9. kaynak=(https://github.com/dlang/dub/archive/v$surum.tar.gz::$isim-$surum.tar.gz)
  10. derle() {
  11. DC=dmd
  12. cd "$SRC/dub-$surum"
  13. echo "module dub.version_;" > source/dub/version_.d
  14. echo "enum dubVersion = \"$surum\";" >> source/dub/version_.d
  15. $DC -ofbin/dub -w -O -g -surum=DubUseCurl -Isource -L-lcurl @build-files.txt
  16. install -Dm755 "bin/dub" "$PKG/usr/bin/dub"
  17. install -Dm644 "LICENSE.txt" "$PKG/usr/share/licenses/$isim/LICENSE"
  18. install -Dm644 "scripts/bash-completion/dub.bash" "$PKG/usr/share/bash-completion/completions/dub"
  19. }