123456789101112131415161718192021222324252627 |
- # Tanım: A REPL for Torch
- # URL: https://github.com/torch/trepl
- # Paketçi: milisarge
- # Gerekler: git torch7 lua51-penlight
- # Grup:
- isim=torch7-trepl
- surum=1.0
- devir=1
- kaynak=()
- derle() {
- git_indir https://github.com/torch/trepl $isim
- cd "${isim}"
- echo "->: readline.so"
- gcc -shared -fPIC -I/usr/include/luajit-2.0 -o readline.so readline.c -lluajit-5.1 -lreadline
- echo "->: treplutils.so"
- gcc -shared -fPIC -I/usr/include/luajit-2.0 -o treplutils.so utils.c -lluajit-5.1
- for name in readline treplutils ; do
- install -Dm755 "${name}.so" "${PKG}/usr/lib/lua/5.1/${name}.so"
- done
- for name in init colors colorize ; do
- install -Dm644 "${name}.lua" "${PKG}/usr/share/lua/5.1/trepl/${name}.lua"
- done
- install -Dm755 th "${PKG}/usr/bin/th"
- }
|