diff options
Diffstat (limited to 'misc/twa')
-rw-r--r-- | misc/twa/slack-desc | 2 | ||||
-rw-r--r-- | misc/twa/twa.SlackBuild | 16 |
2 files changed, 14 insertions, 4 deletions
diff --git a/misc/twa/slack-desc b/misc/twa/slack-desc index 6e05e0e0d4..0fb8ff0e34 100644 --- a/misc/twa/slack-desc +++ b/misc/twa/slack-desc @@ -10,7 +10,7 @@ twa: twa (A tiny web auditor with strong opinions) twa: twa: A tiny web auditor with strong opinions. twa: -twa: +twa: twa: twa: twa: website: https://github.com/trailofbits/twa diff --git a/misc/twa/twa.SlackBuild b/misc/twa/twa.SlackBuild index 9591252bce..3a2e4ce840 100644 --- a/misc/twa/twa.SlackBuild +++ b/misc/twa/twa.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for twa @@ -22,14 +22,24 @@ # 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=twa VERSION=${VERSION:-1.8.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch -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} @@ -70,4 +80,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 |