diff options
author | Slack Coder <slackcoder@server.ky> | 2024-05-03 13:49:37 -0500 |
---|---|---|
committer | Slack Coder <slackcoder@server.ky> | 2024-05-03 14:17:27 -0500 |
commit | 97b33258577934feec22a139b163477cd976f811 (patch) | |
tree | 57d2f0d1748162730402de6853b423dbaf1a1fbf /gnunet/gnunet.SlackBuild | |
parent | 5bf6a79a6fdd9e0611e6cc8e5ee0f274dac018ca (diff) | |
download | slackbuilds-97b33258577934feec22a139b163477cd976f811.tar.xz |
Lint using sbo-maintainer-tools
Diffstat (limited to 'gnunet/gnunet.SlackBuild')
-rw-r--r--[-rwxr-xr-x] | gnunet/gnunet.SlackBuild | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/gnunet/gnunet.SlackBuild b/gnunet/gnunet.SlackBuild index 3a943f4..f411b97 100755..100644 --- a/gnunet/gnunet.SlackBuild +++ b/gnunet/gnunet.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for gnunet @@ -22,10 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=gnunet VERSION=${VERSION:-0.21.1} BUILD=${BUILD:-1} TAG=${TAG:-_slackcoder} +PKGTYPE=${PKGTYPE:-txz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,25 +38,25 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -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 +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + set -e rm -rf $PKG @@ -93,4 +96,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:-txz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |