wok-6.x rev 24796
Add f2c
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 21 16:04:07 2022 +0000 (2022-03-21) |
parents | 2185de1303cc |
children | 5d7e045e355b |
files | f2c/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/f2c/receipt Mon Mar 21 16:04:07 2022 +0000 1.3 @@ -0,0 +1,34 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="f2c" 1.7 +VERSION="20200916" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="A Fortran 77 to C translator." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +LICENSE="" 1.12 +TARBALL="$PACKAGE-$VERSION.tgz" 1.13 +WEB_SITE="http://www.netlib.org/f2c/" 1.14 +WGET_URL="${WEB_SITE}src.tgz" 1.15 +TAGS="fortran" 1.16 + 1.17 +# What is the latest version available today? 1.18 +current_version() 1.19 +{ 1.20 + wget -O - $WGET_URL 2>/dev/null | \ 1.21 + tar xOzf - src/changes | sed '/^20[0-9]/!d' | sort -Vr | sed q 1.22 +} 1.23 + 1.24 +# Rules to configure and make the package. 1.25 +compile_rules() 1.26 +{ 1.27 + cp makefile.u makefile 1.28 + make 1.29 +} 1.30 + 1.31 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.32 +genpkg_rules() 1.33 +{ 1.34 + mkdir -p $install/usr/man $fs/usr/bin 1.35 + cp -a $src/f2c $fs/usr/bin 1.36 + cp -a $src/f2c.1* $install/usr/man 1.37 +}