aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/zutty/zutty.SlackBuild34
-rw-r--r--system/zutty/zutty.info6
2 files changed, 31 insertions, 9 deletions
diff --git a/system/zutty/zutty.SlackBuild b/system/zutty/zutty.SlackBuild
index 5950a47eab13..d67cc5137f4a 100644
--- a/system/zutty/zutty.SlackBuild
+++ b/system/zutty/zutty.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for zutty
-# Copyright 2023 Samuel Young, MO, USA
+# Copyright 2023-2024 Samuel Young, MO, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,11 +25,21 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=zutty
-VERSION=${VERSION:-0.14}
+VERSION=${VERSION:-0.15}
+COMMIT=3fb1516
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
+# This SlackBuild searches for tarball named $VERSION.tar.gz (wget) or
+# $PRGNAM-$VERSION-$COMMIT.tar.gz (browser). I couldn't find a link to a tarball
+# with a dedicated filename, so this will have to do.
+if [ -f $CWD/$VERSION.tar.gz ]; then
+ TARNAM=$VERSION
+else
+ TARNAM=$PRGNAM-$VERSION-$COMMIT
+fi
+
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -47,14 +57,24 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+if [ "$ARCH" = "i586" ]; then
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ LIBDIRSUFFIX="64"
+else
+ LIBDIRSUFFIX=""
+fi
+
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-$VERSION-$COMMIT
+tar xvf $CWD/$TARNAM.tar.gz
+cd $PRGNAM-$VERSION-$COMMIT
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -63,7 +83,9 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
./waf configure \
- --prefix=/usr
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --libdir=/usr/lib${LIBDIRSUFFIX}
./waf
./waf install --destdir=$PKG
diff --git a/system/zutty/zutty.info b/system/zutty/zutty.info
index 8df268322a80..026f69e47451 100644
--- a/system/zutty/zutty.info
+++ b/system/zutty/zutty.info
@@ -1,8 +1,8 @@
PRGNAM="zutty"
-VERSION="0.14"
+VERSION="0.15"
HOMEPAGE="https://tomscii.sig7.se/zutty/"
-DOWNLOAD="https://github.com/tomscii/zutty/archive/0.14/zutty-0.14.tar.gz"
-MD5SUM="45c3a53e371ffbb87027d41d99799989"
+DOWNLOAD="https://git.hq.sig7.se/zutty.git/snapshot/0.15.tar.gz"
+MD5SUM="45301e40ce2e8ef18a18ef6eb808f559"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""