summaryrefslogtreecommitdiffstats
path: root/development/ftnchek
diff options
context:
space:
mode:
Diffstat (limited to 'development/ftnchek')
-rw-r--r--development/ftnchek/README11
-rw-r--r--development/ftnchek/ftnchek.SlackBuild22
-rw-r--r--development/ftnchek/ftnchek.info6
3 files changed, 22 insertions, 17 deletions
diff --git a/development/ftnchek/README b/development/ftnchek/README
index a5b2be5cfa..6b1166f254 100644
--- a/development/ftnchek/README
+++ b/development/ftnchek/README
@@ -1,8 +1,9 @@
ftnchek (a static analyzer for Fortran 77 programs)
-ftnchek (short for Fortran checker) is designed to detect certain errors
-in a Fortran program that a compiler usually does not.
+ftnchek (short for Fortran checker) is designed to detect certain
+errors in a Fortran program that a compiler usually does not.
-ftnchek is not primarily intended to detect syntax errors. Its purpose is
-to assist the user in finding semantic errors. Semantic errors are legal
-in the Fortran language but are wasteful or may cause incorrect operation.
+ftnchek is not primarily intended to detect syntax errors. Its purpose
+is to assist the user in finding semantic errors. Semantic errors are
+legal in the Fortran language but are wasteful or may cause incorrect
+operation.
diff --git a/development/ftnchek/ftnchek.SlackBuild b/development/ftnchek/ftnchek.SlackBuild
index 8235fd37b4..f976bce66a 100644
--- a/development/ftnchek/ftnchek.SlackBuild
+++ b/development/ftnchek/ftnchek.SlackBuild
@@ -1,10 +1,10 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for ftnchek
# Originally written by Pablo Santamaria (email removed)
-# Now maintained by B. Watson <yalhcru@gmail.com>. Original version
+# Now maintained by B. Watson <urchlay@slackware.uk>. Original version
# had no license, modified version released under the WTFPL. See
# http://www.wtfpl.net/txt/copying/ for details.
@@ -16,10 +16,13 @@
# - reflow README, make slack-desc a bit more verbose
# - minor cosmetic fixes
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=ftnchek
VERSION=${VERSION:-3.3.1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -29,7 +32,11 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -57,11 +64,8 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -84,4 +88,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/development/ftnchek/ftnchek.info b/development/ftnchek/ftnchek.info
index 731d311e65..4603a421d4 100644
--- a/development/ftnchek/ftnchek.info
+++ b/development/ftnchek/ftnchek.info
@@ -1,10 +1,10 @@
PRGNAM="ftnchek"
VERSION="3.3.1"
-HOMEPAGE="http://www.dsm.fordham.edu/~ftnchek/"
-DOWNLOAD="http://www.dsm.fordham.edu/~ftnchek/download/ftnchek-3.3.1.tar.gz"
+HOMEPAGE="https://www.dsm.fordham.edu/~ftnchek/"
+DOWNLOAD="https://www.dsm.fordham.edu/~ftnchek/download/ftnchek-3.3.1.tar.gz"
MD5SUM="e1f4ce51ea1a85e7b080ab5d23013f97"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="B. Watson"
-EMAIL="yalhcru@gmail.com"
+EMAIL="urchlay@slackware.uk"