wok-current diff libaio/receipt @ rev 21196

libaio: fix genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 06 10:33:42 2019 +0200 (2019-04-06)
parents 826a813de9f7
children 0bfa0a833a34
line diff
     1.1 --- a/libaio/receipt	Tue Mar 19 18:51:13 2019 +0100
     1.2 +++ b/libaio/receipt	Sat Apr 06 10:33:42 2019 +0200
     1.3 @@ -26,5 +26,11 @@
     1.4  {
     1.5  	mkdir -p $fs/usr/lib
     1.6  	install -D -m 755 $src/src/libaio.so.* $fs/usr/lib/
     1.7 -	ln -sf $(cd $src/src ; ls libaio.so.*) $fs/usr/lib/libaio.so
     1.8 +	lib=$(cd $src/src; ls libaio.so.*)
     1.9 +	ln=$lib
    1.10 +	while true; do
    1.11 +		ln=${ln%.*}
    1.12 +		ln -sf $lib $fs/usr/lib/$ln
    1.13 +		[ $ln = libaio.so ] && break
    1.14 +	done
    1.15  }