milis/talimatname/genel/l/lua51/talimat

47 lines
1.4 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Uygulamaları genişletmek için tasarlanmış bir programlama dili (sürüm 5.1)
2016-02-24 01:27:23 +01:00
# URL: URL: http://www.lua.org
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler:
2017-04-04 09:51:53 +02:00
2017-10-28 14:10:23 +02:00
isim=lua51
surum=5.1.5
devir=1
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
kaynak=(
http://www.lua.org/ftp/lua-$surum.tar.gz
2016-02-24 01:27:23 +01:00
http://www.linuxfromscratch.org/patches/blfs/7.4/lua-5.1.5-shared_library-2.patch)
2017-10-27 23:59:41 +02:00
derle(){
2017-10-28 14:10:23 +02:00
cd lua-$surum
2016-02-24 01:27:23 +01:00
patch -Np1 -i ../lua-5.1.5-shared_library-2.patch
sed -i '/#define LUA_ROOT/s:/usr/local/:/usr/:' src/luaconf.h
[ `uname -i` == "x86_64" ] && export CFLAGS="$CFLAGS -fPIC"
sed -e 's:llua:llua5.1:' -e 's:/include:/include/lua5.1:' -i etc/lua.pc
sed -r -e '/^LUA_(SO|A|T)=/ s/lua/lua5.1/' -e '/^LUAC_T=/ s/luac/luac5.1/' \
-i src/Makefile
make linux
make \
INSTALL_TOP=$PKG/usr \
TO_BIN='lua5.1 luac5.1' \
2017-10-28 14:10:23 +02:00
TO_LIB="liblua5.1.a liblua5.1.so liblua5.1.so.5.1 liblua5.1.so.$surum" \
2016-02-24 01:27:23 +01:00
INSTALL_INC=$PKG/usr/include/lua5.1 \
INSTALL_DATA="cp -d" \
INSTALL_MAN=$PKG/usr/share/man/man1 \
install
rm -r $PKG/usr/share/lua
# pkg-config, change name so that others lua version can be installed
install -Dm644 etc/lua.pc $PKG/usr/lib/pkgconfig/lua5.1.pc
# symlinks
ln -s liblua5.1.so $PKG/usr/lib/liblua.so.5.1
2017-10-28 14:10:23 +02:00
ln -s liblua5.1.so $PKG/usr/lib/liblua.so.$surum
2016-02-24 01:27:23 +01:00
# rename man pages
cd $PKG/usr/share/man/man1
mv lua.1 lua5.1.1
mv luac.1 luac5.1.1
}
# NuTyX Pkgfile (http://nutyx.org)