milis/talimatname/genel/l/lua/talimat

46 lines
1.3 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
2016-02-24 01:27:23 +01:00
# URL: http://www.lua.org
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler:
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
isim=lua
surum=5.3.4
_majorver=${surum%.*}
devir=1
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
kaynak=(https://www.lua.org/ftp/lua-$surum.tar.gz
2017-08-27 20:17:02 +02:00
liblua.so.patch
lua.pc
LICENSE)
2017-10-27 23:59:41 +02:00
derle() {
2017-08-27 20:17:02 +02:00
2017-10-28 14:10:23 +02:00
cd $SRC/lua-$surum
2017-08-27 20:17:02 +02:00
patch -p1 -i ../liblua.so.patch
2017-10-28 14:10:23 +02:00
sed "s/%VER%/$_majorver/g;s/%REL%/$surum/g" ../lua.pc > lua.pc
2017-08-27 20:17:02 +02:00
# 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 \
2017-10-28 14:10:23 +02:00
TO_LIB="liblua.a liblua.so liblua.so.$_majorver liblua.so.$surum" \
2017-08-27 20:17:02 +02:00
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
2017-10-28 14:10:23 +02:00
ln -sf /usr/lib/liblua.so.$surum "$PKG"/usr/lib/liblua$_majorver.so
2017-08-27 20:17:02 +02:00
2017-10-28 14:10:23 +02:00
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
2017-08-27 20:17:02 +02:00
2017-10-28 14:10:23 +02:00
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
2017-08-27 20:17:02 +02:00
rm -r $PKG/usr/share/doc
rm -r $PKG/usr/share/man
2016-02-24 01:27:23 +01:00
}