2017-04-04 09:50:49 +02:00
|
|
|
|
# Description: Uygulamaları genişletmek için tasarlanmış bir programlama dili
|
2016-02-24 01:27:23 +01:00
|
|
|
|
# URL: http://www.lua.org
|
2017-04-04 09:50:49 +02:00
|
|
|
|
# Packager: milisarge
|
|
|
|
|
# Depends on:
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
|
|
name=lua
|
|
|
|
|
version=5.3.2
|
|
|
|
|
release=2
|
|
|
|
|
_majorver=${version%.*}
|
|
|
|
|
|
|
|
|
|
source=(http://www.lua.org/ftp/$name-$version.tar.gz lua.pc
|
|
|
|
|
http://www.linuxfromscratch.org/patches/blfs/svn/$name-$version-shared_library-1.patch)
|
|
|
|
|
build() {
|
|
|
|
|
cd $name-$version
|
|
|
|
|
patch -Np1 -i ../$name-$version-shared_library-1.patch
|
|
|
|
|
sed -i '/#define LUA_ROOT/s:/usr/local/:/usr/:' src/luaconf.h
|
|
|
|
|
|
|
|
|
|
make linux
|
|
|
|
|
make INSTALL_TOP=$PKG/usr TO_LIB="liblua.so liblua.so.5.3 liblua.so.5.3.2" \
|
|
|
|
|
INSTALL_DATA="cp -d" INSTALL_MAN=$PKG/usr/share/man/man1 install
|
|
|
|
|
mkdir -pv $PKG/usr/share/doc/$name-$version
|
|
|
|
|
cp -v doc/*.{html,css,gif,png} $PKG/usr/share/doc/$name-$version
|
|
|
|
|
mkdir -p $PKG/usr/lib/pkgconfig
|
|
|
|
|
sed "s/%VER%/$_majorver/g;s/%REL%/$pkgver/g" ../lua.pc \
|
|
|
|
|
> $PKG/usr/lib/pkgconfig/lua.pc
|
|
|
|
|
}
|