milis/talimatname/genel/l/lua52/talimat

49 lines
1.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Uygulamaları genişletmek için tasarlanmış bir programlama dili (5.2 sürümü).
# URL: http://www.lua.org/
# Paketçi: milisarge
# Gerekler: readline
# Grup: geliştirme
isim=lua52
surum=5.2.4
devir=1
kaynak=(http://www.lua.org/ftp/lua-$surum.tar.gz
lua.diff lua-5.2-cflags.diff lua.pc)
derle() {
cd lua-$surum
patch -p1 -i $SRC/lua.diff
patch -p1 -i $SRC/lua-5.2-cflags.diff
sed -e "s/%VER%/${surum%.*}/g;s/%REL%/$surum/g" $SRC/lua.pc > lua.pc
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" \
TO_LIB="liblua5.2.a liblua5.2.so liblua5.2.so.5.2 liblua5.2.so.$surum" \
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
ln -s liblua5.2.so $PKG/usr/lib/liblua.so.$surum
cd $PKG/usr/share/man/man1
mv lua.1 lua5.2.1
mv luac.1 luac5.2.1
}