wok-6.x annotate libaio/receipt @ rev 21278
Update some WEB_SITE
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 13 10:08:46 2019 +0200 (2019-04-13) |
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 } |