diff options
Diffstat (limited to 'system/reptyr/reptyr.SlackBuild')
-rw-r--r-- | system/reptyr/reptyr.SlackBuild | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/system/reptyr/reptyr.SlackBuild b/system/reptyr/reptyr.SlackBuild index 532699761d..63dc56659a 100644 --- a/system/reptyr/reptyr.SlackBuild +++ b/system/reptyr/reptyr.SlackBuild @@ -1,21 +1,26 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for reptyr -# Written by B. Watson (yalhcru@gmail.com) +# Written by B. Watson (urchlay@slackware.uk) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20230711 bkw: updated for v0.10.0 +# 20221228 bkw: updated for v0.9.0 # 20201103 bkw: updated for v0.8.0 # 20191128 bkw: updated for v0.7.0 # 20170621 bkw: get rid of -Werror (-current needs this) # 20170302 bkw: use long-format github URL # 20150505 bkw: updated for v0.6.2 +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=reptyr -VERSION=${VERSION:-0.8.0} +VERSION=${VERSION:-0.10.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -25,7 +30,11 @@ if [ -z "$ARCH" ]; then 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} @@ -60,7 +69,7 @@ make PREFIX=/usr CFLAGS="$SLKCFLAGS" strip $PRGNAM make install PREFIX=/usr DESTDIR=$PKG -find $PKG/usr/man -type f -exec gzip -9 {} \; +find $PKG/usr/man -type f -exec gzip -9 {} + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a COPYING ChangeLog NOTES README.md $PKG/usr/doc/$PRGNAM-$VERSION @@ -70,4 +79,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:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |