wok-current view libuv/receipt @ rev 25531

Add some current_version()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 27 10:05:50 2023 +0000 (22 months ago)
parents 2ce61368004b
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libuv"
4 VERSION="1.44.1"
5 CATEGORY="libs"
6 SHORT_DESC="Cross-platform asychronous I/O."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="MIT ISC"
9 WEB_SITE="https://libuv.org/"
11 TARBALL="$PACKAGE-v$VERSION.tar.gz"
12 WGET_URL="https://dist.libuv.org/dist/v$VERSION/$TARBALL"
14 BUILD_DEPENDS="autoconf automake libtool"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://dist.libuv.org/dist/ 2>/dev/null | \
20 sed '/href="v/!d;s|.*"v||;s|/".*||' | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./autogen.sh &&
27 ./configure \
28 --prefix=/usr \
29 --sysconfdir=/etc \
30 --mandir=/usr/share/man \
31 --localstatedir=/var &&
32 make \
33 CFLAGS="$CFLAGS -D__USE_MISC" \
34 BUILDTYPE=Release
35 make install \
36 DESTDIR="$DESTDIR"
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 cook_copy_files *.so*
43 }