talimat 755 B

123456789101112131415161718192021222324252627
  1. # Tanım: A REPL for Torch
  2. # URL: https://github.com/torch/trepl
  3. # Paketçi: milisarge
  4. # Gerekler: git torch7 lua51-penlight
  5. # Grup:
  6. isim=torch7-trepl
  7. surum=1.0
  8. devir=1
  9. kaynak=()
  10. derle() {
  11. git_indir https://github.com/torch/trepl $isim
  12. cd "${isim}"
  13. echo "->: readline.so"
  14. gcc -shared -fPIC -I/usr/include/luajit-2.0 -o readline.so readline.c -lluajit-5.1 -lreadline
  15. echo "->: treplutils.so"
  16. gcc -shared -fPIC -I/usr/include/luajit-2.0 -o treplutils.so utils.c -lluajit-5.1
  17. for name in readline treplutils ; do
  18. install -Dm755 "${name}.so" "${PKG}/usr/lib/lua/5.1/${name}.so"
  19. done
  20. for name in init colors colorize ; do
  21. install -Dm644 "${name}.lua" "${PKG}/usr/share/lua/5.1/trepl/${name}.lua"
  22. done
  23. install -Dm755 th "${PKG}/usr/bin/th"
  24. }