wok annotate f2c/receipt @ rev 24796

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