wok annotate libaio/receipt @ rev 25644
Add fake-hwclock, manage time on system without RTC
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Tue Jan 16 19:48:23 2024 +0100 (9 months ago) |
parents | d2f1ecac9d81 |
children |
rev | line source |
---|---|
pascal@13498 | 1 # SliTaz package receipt. |
pascal@13498 | 2 |
pascal@13498 | 3 PACKAGE="libaio" |
Hans-G?nter@23001 | 4 VERSION="0.3.112" |
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@23001 | 9 WEB_SITE="https://pagure.io/libaio" |
Hans-G?nter@21111 | 10 |
Hans-G?nter@23001 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@23001 | 12 WGET_URL="https://releases.pagure.org/$PACKAGE/$TARBALL" |
pascal@13498 | 13 |
pascal@13498 | 14 DEPENDS="" |
pascal@13498 | 15 BUILD_DEPENDS="" |
pascal@13498 | 16 |
pascal@24076 | 17 current_version() |
pascal@24076 | 18 { |
pascal@24076 | 19 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24076 | 20 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24076 | 21 } |
pascal@24076 | 22 |
pascal@13498 | 23 # Rules to configure and make the package. |
pascal@13498 | 24 compile_rules() |
pascal@13498 | 25 { |
Hans-G?nter@23001 | 26 sed -i 's|uname -m|echo i486|' \ |
Hans-G?nter@23001 | 27 src/Makefile |
Hans-G?nter@23001 | 28 |
pascal@13498 | 29 make prefix=/usr |
pascal@13498 | 30 } |
pascal@13498 | 31 |
pascal@13498 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13498 | 33 genpkg_rules() |
pascal@13498 | 34 { |
pascal@13498 | 35 mkdir -p $fs/usr/lib |
Hans-G?nter@23001 | 36 install -D -m 755 $src/src/libaio.so.* $fs/usr/lib/ |
pascal@21199 | 37 lib=$(cd $src/src; ls libaio.so.* | tail -n 1) |
pascal@21196 | 38 ln=$lib |
Hans-G?nter@23001 | 39 while true |
Hans-G?nter@23001 | 40 do |
pascal@21196 | 41 ln=${ln%.*} |
pascal@21196 | 42 ln -sf $lib $fs/usr/lib/$ln |
pascal@21196 | 43 [ $ln = libaio.so ] && break |
Hans-G?nter@23001 | 44 done |
pascal@13498 | 45 } |