wok-6.x view libaio/receipt @ rev 25298

updated scrot (0.8-12 -> 1.7)
author Hans-G?nter Theisgen
date Wed Jul 20 07:03:07 2022 +0100 (2022-07-20)
parents d2f1ecac9d81
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libaio"
4 VERSION="0.3.112"
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="https://pagure.io/libaio"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://releases.pagure.org/$PACKAGE/$TARBALL"
14 DEPENDS=""
15 BUILD_DEPENDS=""
17 current_version()
18 {
19 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
20 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i 's|uname -m|echo i486|' \
27 src/Makefile
29 make prefix=/usr
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib
36 install -D -m 755 $src/src/libaio.so.* $fs/usr/lib/
37 lib=$(cd $src/src; ls libaio.so.* | tail -n 1)
38 ln=$lib
39 while true
40 do
41 ln=${ln%.*}
42 ln -sf $lib $fs/usr/lib/$ln
43 [ $ln = libaio.so ] && break
44 done
45 }