talimat 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Tanım: D programlama dili başvuru derleyici
  2. # URL: http://www.dlang.org
  3. # Paketçi: milisarge
  4. # Gerekler: unzip
  5. # Grup: geliştirme
  6. isim=dmd
  7. surum=2.085.0
  8. devir=1
  9. kaynak=(https://github.com/dlang/dmd/archive/v$surum.tar.gz::$isim-$surum.tar.gz
  10. https://github.com/dlang/druntime/archive/v$surum.tar.gz::druntime-$surum.tar.gz
  11. https://github.com/dlang/phobos/archive/v$surum.tar.gz::phobos-$surum.tar.gz)
  12. derle() {
  13. mv dmd-$surum dmd
  14. mv druntime-$surum druntime
  15. mv phobos-$surum phobos
  16. cd "$SRC"/dmd
  17. make -f posix.mak MODEL=64 RELEASE=1 AUTO_BOOTSTRAP=1
  18. cd $SRC/druntime
  19. make -f posix.mak DMD="$SRC"/dmd/generated/linux/release/*/dmd BUILD=release RELEASE=1 PIC=1
  20. cd $SRC/phobos
  21. make -f posix.mak DMD="$SRC"/dmd/generated/linux/release/*/dmd BUILD=release RELEASE=1 PIC=1
  22. install -m 0755 -D $SRC/dmd/generated/linux/release/64/dmd $PKG/usr/bin/dmd
  23. install -d $PKG/etc
  24. echo -e "[Environment]\nDFLAGS=-I/usr/include/dlang/dmd -L-L/usr/lib -L-L/usr/lib64 -L--export-dynamic" > $PKG/etc/dmd.conf
  25. install -d $PKG/usr/share/d/samples/
  26. cp -r $SRC/dmd/samples/* $PKG/usr/share/d/samples/
  27. # Phobos standard library
  28. install -m 0644 -D $SRC/phobos/generated/linux/release/64/libphobos2.a \
  29. $PKG/usr/lib/libphobos2.a
  30. install -d $PKG/usr/include/dlang/dmd
  31. cp -r $SRC/phobos/{*.d,etc,std} $PKG/usr/include/dlang/dmd
  32. cp -r $SRC/druntime/import/* $PKG/usr/include/dlang/dmd/
  33. install -m 0644 -D $SRC/phobos/generated/linux/release/64/libphobos2.so \
  34. $PKG/usr/lib/libphobos2.so
  35. }