diff options
Diffstat (limited to 'system/terminology/terminology.SlackBuild')
-rw-r--r-- | system/terminology/terminology.SlackBuild | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/system/terminology/terminology.SlackBuild b/system/terminology/terminology.SlackBuild index fed8189f2c..097bb379a5 100644 --- a/system/terminology/terminology.SlackBuild +++ b/system/terminology/terminology.SlackBuild @@ -1,7 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for terminology -# Erik Falor | Logan, UT | ewfalor@gmail.com +# Erik Falor | Logan, UT, USA | ewfalor@gmail.com | January 2024 +# All rights reserved. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -22,10 +23,13 @@ # <http://www.gnu.org/licenses/>. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=terminology -VERSION=${VERSION:-1.3.2} +VERSION=${VERSION:-1.13.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,7 +39,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} @@ -54,7 +65,8 @@ else LIBDIRSUFFIX="" fi -DOCS="AUTHORS COPYING ChangeLog DESIGN.md NEWS README.md TODO" + +DOCS="AUTHORS COLORSCHEMES.md COPYING ChangeLog ChangeLog.theme DESIGN.md NEWS README.md THEMES.md TODO" set -e @@ -76,13 +88,9 @@ CXXFLAGS="$SLKCFLAGS" \ meson \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ --mandir=/usr/man \ . build - -ninja -C build -v -DESTDIR=$PKG ninja -C build -v install +DESTDIR=$PKG ${NINJA:=ninja} -C build -v install find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -99,4 +107,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh 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 |