diff options
Diffstat (limited to 'academic/seaview/seaview.SlackBuild')
-rw-r--r-- | academic/seaview/seaview.SlackBuild | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/academic/seaview/seaview.SlackBuild b/academic/seaview/seaview.SlackBuild index 2def34de14..327d7df737 100644 --- a/academic/seaview/seaview.SlackBuild +++ b/academic/seaview/seaview.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for seaview -# Copyright 2011-2018 Petar Petrov slackalaxy@gmail.com +# Copyright 2011-2021 Petar Petrov slackalaxy@gmail.com # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,10 +25,13 @@ # Thanks to Niels Horn for correcting the CFLAGS. # Thanks to developer Dr. Manolo Gouy for all his help. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=seaview -VERSION=${VERSION:-4.7} -BUILD=${BUILD:-1} +VERSION=${VERSION:-5.0.5} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -38,7 +41,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# 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 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -67,10 +77,10 @@ tar xvf $CWD/${PRGNAM}_${VERSION}.tar.gz cd $PRGNAM 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 {} \; + \( -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 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # Use our CFLAGS sed -i "/^CFLAGS/s/=/+=/" Makefile @@ -87,8 +97,8 @@ sed -i "s:#HELPFILE:HELPFILE:" Makefile sed -i "s:/share/doc/seaview:/doc/$PRGNAM-$VERSION/:" Makefile sed -i "s:#PHYMLNAME:PHYMLNAME:" Makefile -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ +CFLAGS="$SLKCFLAGS -fcommon" \ +CXXFLAGS="$SLKCFLAGS -fcommon" \ make install -D -m755 $PRGNAM $PKG/usr/bin/$PRGNAM @@ -114,4 +124,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh 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 |