wok-current view 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 source
1 # SliTaz package receipt.
3 PACKAGE="libaio"
4 VERSION="0.3.111"
5 CATEGORY="misc"
6 SHORT_DESC="Linux-native asynchronous I/O access library."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="http://lse.sourceforge.net/io/aio.html"
11 TARBALL="${PACKAGE}_$VERSION.orig.tar.gz"
12 WGET_URL="http://ftp.de.debian.org/debian/pool/main/liba/$PACKAGE/$TARBALL"
14 DEPENDS=""
15 BUILD_DEPENDS=""
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i 's|uname -m|echo i486|' src/Makefile
21 make prefix=/usr
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr/lib
28 install -D -m 755 $src/src/libaio.so.* $fs/usr/lib/
29 lib=$(cd $src/src; ls libaio.so.*)
30 ln=$lib
31 while true; do
32 ln=${ln%.*}
33 ln -sf $lib $fs/usr/lib/$ln
34 [ $ln = libaio.so ] && break
35 done
36 }