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
name=lua
2017-08-27 20:17:02 +02:00
version=5.3.4
2016-02-24 01:27:23 +01:00
_majorver=${version%.*}
2017-08-27 20:17:02 +02:00
release=1
2016-02-24 01:27:23 +01:00
2017-08-27 20:17:02 +02:00
source=(https://www.lua.org/ftp/lua-$version.tar.gz
liblua.so.patch
lua.pc
LICENSE)
2016-02-24 01:27:23 +01:00
build() {
2017-08-27 20:17:02 +02:00
cd $SRC/lua-$version
patch -p1 -i ../liblua.so.patch
sed "s/%VER%/$_majorver/g;s/%REL%/$version/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.$version" \
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.$version "$PKG"/usr/lib/liblua$_majorver.so
install -Dm644 lua.pc "$PKG"/usr/lib/pkgconfig/${name}53.pc
ln -sf /usr/lib/pkgconfig/${name}53.pc "$PKG"/usr/lib/pkgconfig/$name.pc
install -d "$PKG"/usr/share/doc/$name
install -m644 doc/*.{gif,png,css,html} "$PKG"/usr/share/doc/$name
install -Dm644 ../LICENSE "$PKG"/usr/share/licenses/$name/LICENSE
rm -r $PKG/usr/share/doc
rm -r $PKG/usr/share/man
2016-02-24 01:27:23 +01:00
}