diff options
Diffstat (limited to 'development/mg-troglobit/mg-troglobit.SlackBuild')
-rw-r--r-- | development/mg-troglobit/mg-troglobit.SlackBuild | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/development/mg-troglobit/mg-troglobit.SlackBuild b/development/mg-troglobit/mg-troglobit.SlackBuild index b910a47fce..80017a05c4 100644 --- a/development/mg-troglobit/mg-troglobit.SlackBuild +++ b/development/mg-troglobit/mg-troglobit.SlackBuild @@ -1,13 +1,16 @@ -#!/bin/sh -e +#!/bin/bash -# Slackware build script for Joachim Nilsson (troglobit)'s fork of OpenBSD Mg -# saidone@saidone.org revision date 2019/08/11 +# Slackware build script for Joachim Wiberg (troglobit)'s fork of OpenBSD Mg +# saidone@saidone.org revision date 2023/08/14 # license (of this script and its accessories, not that of the application it will package): see LICENSE +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=mg-troglobit -VERSION=${VERSION:-3.2} +VERSION=${VERSION:-3.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -17,7 +20,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} @@ -79,7 +89,9 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr 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 +gzip -9 $PKG/usr/doc/$PRGNAM-$VERSION/tutorial + rm $PKG/usr/doc/$PRGNAM-$VERSION/*.md 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 |