wok view f2c/receipt @ rev 24844

libunibreak: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 25 09:14:23 2022 +0000 (2022-03-25)
parents 1dc83097496b
children 970deba23db6
line source
1 # SliTaz package receipt.
3 PACKAGE="f2c"
4 VERSION="20200916"
5 CATEGORY="development"
6 SHORT_DESC="A Fortran 77 to C translator."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 TARBALL="$PACKAGE-$VERSION.tgz"
10 WEB_SITE="http://www.netlib.org/f2c/"
11 WGET_URL="${WEB_SITE}src.tgz"
12 TAGS="fortran"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - $WGET_URL 2>/dev/null | \
18 tar xOzf - src/changes | sed '/^20[0-9]/!d' | sort -Vr | sed q
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cp makefile.u makefile
25 make
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $install/usr/man $fs/usr/bin
32 cp -a $src/f2c $fs/usr/bin
33 cp -a $src/f2c.1t $install/usr/man/f2c.1
34 }