lua: use symlinks in libraries

This commit is contained in:
Danny Rawlins 2014-02-18 13:03:01 +11:00
parent 5214f2f86f
commit 21379bf90c
2 changed files with 7 additions and 4 deletions

View File

@ -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/

View File

@ -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