# Description: A programming language designed for extending applications. # URL: http://www.lua.org/ # Maintainer: Danny Rawlins, crux at romster dot me # Packager: Tilman Sauerbeck, tilman at crux dot nu # Depends on: readline name=lua version=5.2.3 release=2 source=(http://www.lua.org/ftp/$name-$version.tar.gz liblua.so.patch lua.pc) build() { cd $name-$version patch -p 1 -i $SRC/liblua.so.patch export CFLAGS="$CFLAGS -fPIC" make MYCFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS" linux make \ TO_LIB="liblua.a liblua.so.$version" \ INSTALL_TOP=$PKG/usr install ln -sf liblua.so.$version $PKG/usr/lib/liblua.so.${version:0:3} ln -sf liblua.so.${version:0:3} $PKG/usr/lib/liblua.so #make pc > lua.pc sed "s/%VER%/${version%.*}/g;s/%REL%/$version/g" $SRC/lua.pc > lua.pc install -m 0644 -D lua.pc $PKG/usr/lib/pkgconfig/lua.pc }