commit 21379bf90cc66082a946b91e83b4ba6026831c96 Author: Danny Rawlins <monster.romster@gmail.com> Date: Tue Feb 18 13:03:01 2014 +1100 lua: use symlinks in libraries diff --git a/lua/.footprint b/lua/.footprint index da42274..e7093a9 100644 --- a/lua/.footprint +++ b/lua/.footprint @@ -10,8 +10,8 @@ drwxr-xr-x root/root usr/include/ -rw-r--r-- root/root usr/include/lualib.h drwxr-xr-x root/root usr/lib/ -rw-r--r-- root/root usr/lib/liblua.a --rw-r--r-- root/root usr/lib/liblua.so --rw-r--r-- root/root usr/lib/liblua.so.5.2 +lrwxrwxrwx root/root usr/lib/liblua.so -> liblua.so.5.2 +lrwxrwxrwx root/root usr/lib/liblua.so.5.2 -> liblua.so.5.2.3 -rw-r--r-- root/root usr/lib/liblua.so.5.2.3 drwxr-xr-x root/root usr/lib/lua/ drwxr-xr-x root/root usr/lib/lua/5.2/ diff --git a/lua/Pkgfile b/lua/Pkgfile index 9be590f..8f7d7a5 100644 --- a/lua/Pkgfile +++ b/lua/Pkgfile @@ -6,7 +6,7 @@ name=lua version=5.2.3 -release=1 +release=2 source=(http://www.lua.org/ftp/$name-$version.tar.gz liblua.so.patch lua.pc) @@ -19,9 +19,12 @@ build() { make MYCFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS" linux make \ - TO_LIB='liblua.a liblua.so liblua.so.5.2 liblua.so.5.2.3' \ + 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