talimat 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Tanım: LISP benzeri sağlam plt şema programlama dili
  2. # Url: http://racket-lang.org
  3. # Paketçi: milisarge
  4. # Gerekler: gsfonts sqlite gtk3
  5. # Grup: geliştirme
  6. isim=racket
  7. surum=6.12
  8. devir=1
  9. kaynak=(http://download.racket-lang.org/installers/${surum}/${isim}-${surum}-src.tgz)
  10. derle() {
  11. cd "$SRC/${isim}-${surum}"
  12. echo "Icon=drracket" >> share/pkgs/drracket/drracket/drracket.desktop
  13. cd "$SRC/${isim}-${surum}/src"
  14. export CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fPIC -Wall -pthread"
  15. export "LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -pthread"
  16. ./configure --prefix=/usr --sysconfdir=/etc --disable-strip
  17. make
  18. cd "$SRC/${isim}-${surum}/src"
  19. make DESTDIR=${PKG} install
  20. install -Dm644 COPYING-libscheme.txt "${PKG}/usr/share/licenses/${isim}/LICENSE"
  21. install -Dm644 ../share/pkgs/drracket/drracket/drracket.desktop "${PKG}/usr/share/applications/drracket.desktop"
  22. install -d "${PKG}"/usr/share/icons/hicolor/{16x16,32x32,48x48,256x256}/apps
  23. ln -s /usr/share/racket/pkgs/icons/plt-16x16.png "${PKG}/usr/share/icons/hicolor/16x16/apps/drracket.png"
  24. ln -s /usr/share/racket/pkgs/icons/plt-32x32.png "${PKG}/usr/share/icons/hicolor/32x32/apps/drracket.png"
  25. ln -s /usr/share/racket/pkgs/icons/plt-48x48.png "${PKG}/usr/share/icons/hicolor/48x48/apps/drracket.png"
  26. ln -s /usr/share/racket/pkgs/icons/plt-logo-red-diffuse.png "${PKG}/usr/share/icons/hicolor/256x256/apps/drracket.png"
  27. # sloppy
  28. find "${PKG}/usr/share/doc/" -delete
  29. }