wok-6.x view libev/receipt @ rev 24447

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 14 17:51:14 2022 +0000 (2022-02-14)
parents 248a3f57e01a
children af2087495a35
line source
1 # SliTaz package receipt.
3 PACKAGE="libev"
4 VERSION="4.31"
5 CATEGORY="system-tools"
6 SHORT_DESC="A full-featured and high-performance event loop."
7 MAINTAINER="mallory@sweetpeople.org"
8 LICENSE="BSD"
9 WEB_SITE="http://software.schmorp.de/pkg/libev.html"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://dist.schmorp.de/libev/$TARBALL"
14 HOST_ARCH="i486 arm"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed "/latest/d;/$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 ./configure $CONFIGURE_ARGS &&
27 make -j 1 &&
28 make install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib
35 cp -a $install/usr/lib/*.so* $fs/usr/lib
36 }