milis/talimatname/genel/l/lua/talimat

47 lines
1.3 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
# URL: http://www.lua.org
# Paketçi: milisarge
# Gerekler:
# Grup: geliştirme
isim=lua
surum=5.3.4
_majorver=${surum%.*}
devir=1
kaynak=(https://www.lua.org/ftp/lua-$surum.tar.gz
liblua.so.patch
lua.pc
LICENSE)
derle() {
cd $SRC/lua-$surum
patch -p1 -i ../liblua.so.patch
sed "s/%VER%/$_majorver/g;s/%REL%/$surum/g" ../lua.pc > lua.pc
# quite a lot of packages still use lua 5.1 API, enable 5.1 compat mode
make MYCFLAGS="$CFLAGS -fPIC -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" MYLDFLAGS="$LDFLAGS" linux
make \
TO_LIB="liblua.a liblua.so liblua.so.$_majorver liblua.so.$surum" \
INSTALL_DATA='cp -d' \
INSTALL_TOP="$PKG"/usr \
INSTALL_MAN="$PKG"/usr/share/man/man1 \
install
ln -sf /usr/bin/lua "$PKG"/usr/bin/lua$_majorver
ln -sf /usr/bin/luac "$PKG"/usr/bin/luac$_majorver
ln -sf /usr/lib/liblua.so.$surum "$PKG"/usr/lib/liblua$_majorver.so
install -Dm644 lua.pc "$PKG"/usr/lib/pkgconfig/${isim}53.pc
ln -sf /usr/lib/pkgconfig/${isim}53.pc "$PKG"/usr/lib/pkgconfig/$isim.pc
install -d "$PKG"/usr/share/doc/$isim
install -m644 doc/*.{gif,png,css,html} "$PKG"/usr/share/doc/$isim
install -Dm644 ../LICENSE "$PKG"/usr/share/licenses/$isim/LICENSE
rm -r $PKG/usr/share/doc
rm -r $PKG/usr/share/man
}