wok annotate libaio/receipt @ rev 21206

Add lbzip2 (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 07 20:47:35 2019 +0200 (2019-04-07)
parents bbb977124ce1
children d2f1ecac9d81
rev   line source
pascal@13498 1 # SliTaz package receipt.
pascal@13498 2
pascal@13498 3 PACKAGE="libaio"
Hans-G?nter@21111 4 VERSION="0.3.111"
pascal@13499 5 CATEGORY="misc"
pascal@13498 6 SHORT_DESC="Linux-native asynchronous I/O access library."
pascal@13498 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14714 8 LICENSE="LGPL2.1"
Hans-G?nter@21111 9 WEB_SITE="http://lse.sourceforge.net/io/aio.html"
Hans-G?nter@21111 10
Hans-G?nter@21111 11 TARBALL="${PACKAGE}_$VERSION.orig.tar.gz"
Hans-G?nter@21111 12 WGET_URL="http://ftp.de.debian.org/debian/pool/main/liba/$PACKAGE/$TARBALL"
pascal@13498 13
pascal@13498 14 DEPENDS=""
pascal@13498 15 BUILD_DEPENDS=""
pascal@13498 16
pascal@13498 17 # Rules to configure and make the package.
pascal@13498 18 compile_rules()
pascal@13498 19 {
pascal@20212 20 sed -i 's|uname -m|echo i486|' src/Makefile
pascal@13498 21 make prefix=/usr
pascal@13498 22 }
pascal@13498 23
pascal@13498 24 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13498 25 genpkg_rules()
pascal@13498 26 {
pascal@13498 27 mkdir -p $fs/usr/lib
pascal@21115 28 install -D -m 755 $src/src/libaio.so.* $fs/usr/lib/
pascal@21199 29 lib=$(cd $src/src; ls libaio.so.* | tail -n 1)
pascal@21196 30 ln=$lib
pascal@21196 31 while true; do
pascal@21196 32 ln=${ln%.*}
pascal@21196 33 ln -sf $lib $fs/usr/lib/$ln
pascal@21196 34 [ $ln = libaio.so ] && break
pascal@21196 35 done
pascal@13498 36 }