From 5214f2f86fb9a5c4288d39722654c25b2fa94614 Mon Sep 17 00:00:00 2001 From: Danny Rawlins Date: Mon, 17 Feb 2014 13:03:38 +1100 Subject: lua: 5.2.2 -> 5.2.3 --- lua/Pkgfile | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'lua/Pkgfile') diff --git a/lua/Pkgfile b/lua/Pkgfile index a731338c3..9be590f38 100644 --- a/lua/Pkgfile +++ b/lua/Pkgfile @@ -5,20 +5,24 @@ # Depends on: readline name=lua -version=5.2.2 +version=5.2.3 release=1 source=(http://www.lua.org/ftp/$name-$version.tar.gz - $name.diff) + liblua.so.patch lua.pc) build() { cd $name-$version - patch -Np1 -i $SRC/$name.diff + patch -p 1 -i $SRC/liblua.so.patch export CFLAGS="$CFLAGS -fPIC" - make linux - make INSTALL_TOP=$PKG/usr install + make MYCFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS" linux - make pc > lua.pc - install -D -m 0644 lua.pc $PKG/usr/lib/pkgconfig/lua.pc + make \ + TO_LIB='liblua.a liblua.so liblua.so.5.2 liblua.so.5.2.3' \ + INSTALL_TOP=$PKG/usr install + + #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 } -- cgit v1.2.3