talimat 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Tanım: Uygulamaları genişletmek için tasarlanmış bir programlama dili (sürüm 5.1)
  2. # URL: URL: http://www.lua.org
  3. # Paketçi: milisarge
  4. # Gerekler:
  5. # Grup: geliştirme
  6. isim=lua51
  7. surum=5.1.5
  8. devir=1
  9. kaynak=(
  10. http://www.lua.org/ftp/lua-$surum.tar.gz
  11. http://www.linuxfromscratch.org/patches/blfs/7.4/lua-5.1.5-shared_library-2.patch)
  12. derle(){
  13. cd lua-$surum
  14. patch -Np1 -i ../lua-5.1.5-shared_library-2.patch
  15. sed -i '/#define LUA_ROOT/s:/usr/local/:/usr/:' src/luaconf.h
  16. [ `uname -i` == "x86_64" ] && export CFLAGS="$CFLAGS -fPIC"
  17. sed -e 's:llua:llua5.1:' -e 's:/include:/include/lua5.1:' -i etc/lua.pc
  18. sed -r -e '/^LUA_(SO|A|T)=/ s/lua/lua5.1/' -e '/^LUAC_T=/ s/luac/luac5.1/' \
  19. -i src/Makefile
  20. make linux
  21. make \
  22. INSTALL_TOP=$PKG/usr \
  23. TO_BIN='lua5.1 luac5.1' \
  24. TO_LIB="liblua5.1.a liblua5.1.so liblua5.1.so.5.1 liblua5.1.so.$surum" \
  25. INSTALL_INC=$PKG/usr/include/lua5.1 \
  26. INSTALL_DATA="cp -d" \
  27. INSTALL_MAN=$PKG/usr/share/man/man1 \
  28. install
  29. rm -r $PKG/usr/share/lua
  30. # pkg-config, change name so that others lua version can be installed
  31. install -Dm644 etc/lua.pc $PKG/usr/lib/pkgconfig/lua5.1.pc
  32. # symlinks
  33. ln -s liblua5.1.so $PKG/usr/lib/liblua.so.5.1
  34. ln -s liblua5.1.so $PKG/usr/lib/liblua.so.$surum
  35. # rename man pages
  36. cd $PKG/usr/share/man/man1
  37. mv lua.1 lua5.1.1
  38. mv luac.1 luac5.1.1
  39. }
  40. # NuTyX Pkgfile (http://nutyx.org)