milis/talimatname/genel/l/lua52/talimat

48 lines
1.2 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 (5.2 sürümü).
2016-06-28 18:53:12 +02:00
# URL: http://www.lua.org/
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: readline
2016-06-28 18:53:12 +02:00
2017-10-28 14:10:23 +02:00
isim=lua52
surum=5.2.4
devir=1
kaynak=(http://www.lua.org/ftp/lua-$surum.tar.gz
2016-06-28 18:53:12 +02:00
lua.diff lua-5.2-cflags.diff lua.pc)
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd lua-$surum
2016-06-28 18:53:12 +02:00
patch -p1 -i $SRC/lua.diff
patch -p1 -i $SRC/lua-5.2-cflags.diff
2017-10-28 14:10:23 +02:00
sed -e "s/%VER%/${surum%.*}/g;s/%REL%/$surum/g" $SRC/lua.pc > lua.pc
2016-06-28 18:53:12 +02:00
sed -e 's:llua:llua5.2:' -e 's:/include:/include/lua5.2:' -i lua.pc
sed -r \
-e '/^LUA_(SO|A|T)=/ s/lua/lua5.2/' \
-e '/^LUAC_T=/ s/luac/luac5.2/' \
-i src/Makefile
make MYCFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS" linux
install -d $PKG/usr/include/lua5.2 $PKG/usr/share/man/man1 $PKG/usr/lib
make \
TO_BIN="lua5.2 luac5.2" \
2017-10-28 14:10:23 +02:00
TO_LIB="liblua5.2.a liblua5.2.so liblua5.2.so.5.2 liblua5.2.so.$surum" \
2016-06-28 18:53:12 +02:00
INSTALL_DATA='cp -d' \
INSTALL_TOP="$PKG/usr" \
INSTALL_INC="$PKG/usr/include/lua5.2" \
INSTALL_MAN="$PKG/usr/share/man/man1" \
install
install -m 0644 -D lua.pc $PKG/usr/lib/pkgconfig/lua5.2.pc
# fixups
ln -s liblua5.2.so $PKG/usr/lib/liblua.so.5.2
2017-10-28 14:10:23 +02:00
ln -s liblua5.2.so $PKG/usr/lib/liblua.so.$surum
2016-06-28 18:53:12 +02:00
cd $PKG/usr/share/man/man1
mv lua.1 lua5.2.1
mv luac.1 luac5.2.1
}