wok view automake/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 e8b94f6e0001
children 1c6c71d0e425
line source
1 # SliTaz package receipt.
3 PACKAGE="automake"
4 VERSION="1.16.1"
5 CATEGORY="development"
6 SHORT_DESC="A GNU tool for automatically creating Makefiles."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.gnu.org/software/automake/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="autoconf"
15 BUILD_DEPENDS="autoconf bison flex"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to compile & install the temporary toolchain.
25 cook_tmp_toolchain()
26 {
27 ./configure &&
28 make -j 1 &&
29 make install
30 }
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 ./configure $CONFIGURE_ARGS &&
36 make -j 1 &&
37 make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 cp -a $install/* $fs
45 ln -sf aclocal-${VERSION%.*} $fs/usr/bin/aclocal
46 ln -sf automake-${VERSION%.*} $fs/usr/bin/automake
48 rm -rf \
49 $fs/usr/share/doc \
50 $fs/usr/share/info \
51 $fs/usr/share/man
52 }