wok-6.x view autoconf-archive/receipt @ rev 24336

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 28 18:19:21 2022 +0000 (2022-01-28)
parents ef4ee17e784f
children
line source
1 # SliTaz package receipt.
3 PACKAGE="autoconf-archive"
4 VERSION="2021.02.19"
5 CATEGORY="development"
6 SHORT_DESC="Collection of GNU Autoconf macros."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="https://www.gnu.org/software/autoconf-archive/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="autoconf"
16 HOST_ARCH="any"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - ${WGET_URL%/*} 2>/dev/null | \
22 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
23 }
25 compile_rules()
26 {
27 ./configure \
28 $CONFIGURE_ARGS &&
29 make &&
30 make install
31 }
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/share
36 cp -a $install/usr/share/aclocal $fs/usr/share
37 }