summaryrefslogtreecommitdiffstats
path: root/misc/xbanish/xbanish.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'misc/xbanish/xbanish.SlackBuild')
-rw-r--r--misc/xbanish/xbanish.SlackBuild54
1 files changed, 29 insertions, 25 deletions
diff --git a/misc/xbanish/xbanish.SlackBuild b/misc/xbanish/xbanish.SlackBuild
index 2f4ba15d9c..49a9bb1ebd 100644
--- a/misc/xbanish/xbanish.SlackBuild
+++ b/misc/xbanish/xbanish.SlackBuild
@@ -1,6 +1,7 @@
-#!/bin/sh
+#!/bin/bash
# Copyright (c) 2013-2018 LEVAI Daniel
+# Copyright (c) 2020 B. Watson
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -27,26 +28,41 @@
# Build script for xbanish
+# 20220610 bkw: update for v1.8
+# 20200720 bkw: update for v1.7
+# 20200129 bkw:
+# - take over maintenance
+# - update for v1.6
+# - i486 => i586
+# - use proper github download URL
+
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=xbanish
-VERSION=${VERSION:-1.5}
+VERSION=${VERSION:-1.8}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
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}
-if [ "$ARCH" = "i486" ];then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ];then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -65,34 +81,22 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-if [ -e $CWD/v$VERSION.tar.gz ]; then
- tar xvf $CWD/v$VERSION.tar.gz
-else
- tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-fi
+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 640 -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" make
-mkdir -p $PKG/usr/bin
-mkdir -p $PKG/usr/man/man1
-make install PREFIX=/usr DESTDIR=$PKG
+make install PREFIX=/usr DESTDIR=$PKG # already stripped
+gzip -9 $PKG/usr/man/man1/$PRGNAM.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/
-cp -a README $PKG/usr/doc/$PRGNAM-$VERSION/
+cp -a README* $PKG/usr/doc/$PRGNAM-$VERSION/
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-find $PKG/usr/doc -type f -exec chmod 0644 {} \;
-
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
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