summaryrefslogtreecommitdiffstats
path: root/libraries/gmtk
diff options
context:
space:
mode:
author B. Watson2022-04-19 19:27:14 +0200
committer B. Watson2022-04-19 19:27:14 +0200
commite7cacbf9ff95a121165938d3a3708df67c18b1aa (patch)
tree113990a9073d13194dfea44343bd44a862709a71 /libraries/gmtk
parent8e6563333a35bdfd0a21cd9f6ae8278dee04ab1f (diff)
downloadslackbuilds-e7cacbf9ff95a121165938d3a3708df67c18b1aa.tar.gz
libraries/gmtk: Fix docs.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/gmtk')
-rw-r--r--libraries/gmtk/gmtk.SlackBuild25
1 files changed, 13 insertions, 12 deletions
diff --git a/libraries/gmtk/gmtk.SlackBuild b/libraries/gmtk/gmtk.SlackBuild
index 93d8312e69..d429eb929c 100644
--- a/libraries/gmtk/gmtk.SlackBuild
+++ b/libraries/gmtk/gmtk.SlackBuild
@@ -3,25 +3,26 @@
# Slackware build script for gmtk
# Written by Phillip Warner <pc_warner@yahoo.com>
+# 20220419 bkw: Modified by SlackBuilds.org, BUILD=3:
+# - remove empty/useless docs from doc dir.
+# - i486 => i586.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gmtk
VERSION=${VERSION:-1.0.8}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
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
-# 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
@@ -31,8 +32,8 @@ 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"
@@ -56,9 +57,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 {} \;
+ -o -perm 400 \) -exec chmod 644 {} \+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -72,10 +73,10 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG
+make install-strip DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+# 20220419 bkw: 0-byte placeholders.
+rm -f $PKG/usr/doc/$PRGNAM-$VERSION/{INSTALL,NEWS,AUTHORS,README}
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild