diff options
author | B. Watson <yalhcru@gmail.com> | 2022-03-30 15:17:17 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-02 18:18:46 +0700 |
commit | b91faf82d8e37877dec0f8e20e28f8ae8e0e5aca (patch) | |
tree | dc3e25fa11fc2f391ab9d079ce924a502ccb3371 /development/flawfinder | |
parent | 3ea7c37c3996938df50098c99061e6ff7370046a (diff) |
development/flawfinder: Fix download URL, ARCH=noarch.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/flawfinder')
-rw-r--r-- | development/flawfinder/flawfinder.SlackBuild | 38 | ||||
-rw-r--r-- | development/flawfinder/flawfinder.info | 2 |
2 files changed, 11 insertions, 29 deletions
diff --git a/development/flawfinder/flawfinder.SlackBuild b/development/flawfinder/flawfinder.SlackBuild index b4f3aa4eb8c25..3424109de7ec0 100644 --- a/development/flawfinder/flawfinder.SlackBuild +++ b/development/flawfinder/flawfinder.SlackBuild @@ -4,25 +4,21 @@ # Written by Andrzej Telszewski <atelszewski@gmail.com> +# 20220330 bkw: Modified by SlackBuilds.org, BUILD=2: +# - make this noarch (no compiled code, no use of $LIBDIRSUFFIX). +# - remove useless INSTALL.txt from doc dir. +# - fix download URL. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=flawfinder VERSION=${VERSION:-1.27} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i486 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi +ARCH=noarch -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" exit 0 @@ -32,20 +28,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - set -e rm -rf $PKG @@ -58,9 +40,9 @@ 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 \ + -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + -exec chmod 644 {} \+ make install \ INSTALL_DIR_BIN=$PKG/usr/bin \ @@ -74,7 +56,7 @@ make install \ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ announcement ChangeLog COPYING correct-results.html correct-results.txt \ - flawfinder.pdf flawtest.c INSTALL.txt junk.c README sloctest.c \ + flawfinder.pdf flawtest.c junk.c README sloctest.c \ test-results.html test-results.txt test.c test2.c \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/development/flawfinder/flawfinder.info b/development/flawfinder/flawfinder.info index b2a0b2ec9c145..e5a1e939ba2cc 100644 --- a/development/flawfinder/flawfinder.info +++ b/development/flawfinder/flawfinder.info @@ -1,7 +1,7 @@ PRGNAM="flawfinder" VERSION="1.27" HOMEPAGE="https://www.dwheeler.com/flawfinder/" -DOWNLOAD="https://www.dwheeler.com/flawfinder/flawfinder-1.27.tar.gz" +DOWNLOAD="http://pkgs.fedoraproject.org/repo/pkgs/flawfinder/flawfinder-1.27.tar.gz/50fff67dd439f42b785577ed8b3a3f7d/flawfinder-1.27.tar.gz" MD5SUM="50fff67dd439f42b785577ed8b3a3f7d" DOWNLOAD_x86_64="" MD5SUM_x86_64="" |