diff options
Diffstat (limited to 'system/openstego/openstego.SlackBuild')
-rw-r--r-- | system/openstego/openstego.SlackBuild | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/system/openstego/openstego.SlackBuild b/system/openstego/openstego.SlackBuild index c06c977620..f3438c197a 100644 --- a/system/openstego/openstego.SlackBuild +++ b/system/openstego/openstego.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for openstego # Copyright 2012-2014 Fridrich von Stauffenberg <email removed> -# Copyright 2018 B. Watson <yalhcru@gmail.com> +# Copyright 2018-2023 B. Watson <urchlay@slackware.uk> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,6 +23,18 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20230713 bkw: +# - update for v0.8.6. +# - new-style icons. +# - enable antialiased fonts in wrapper script. +# - update doinst.sh. + +# 20221228 bkw: update for v0.8.5. + +# 20220610 bkw: +# - update for v0.8.4. +# - requires v11 JDK now, update README note. + # 20210221 bkw: update for v0.8.0. # 20200708 bkw: @@ -38,16 +50,13 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=openstego -VERSION=${VERSION:-0.8.0} +VERSION=${VERSION:-0.8.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch -# 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 @@ -74,9 +83,23 @@ mkdir -p $PKG/usr/bin cat $CWD/$PRGNAM.sh > $PKG/usr/bin/$PRGNAM chmod 755 $PKG/usr/bin/$PRGNAM +# 20230713 bkw: new-style prescaled and scalable icons. openstego.svg +# comes from upstream's official .deb package, on the github releases page, +# and the rest of the icons were made by rendering it with rsvg-convert. +hicolor=$PKG/usr/share/icons/hicolor +for i in $CWD/icons/*.png; do + px="$( basename $i | cut -d. -f1 )" + sz=${px}x${px} + mkdir -p $hicolor/$sz/apps + cat $i > $hicolor/$sz/apps/$PRGNAM.png +done + +mkdir -p $hicolor/scalable/apps +cat $CWD/icons/$PRGNAM.svg > $hicolor/scalable/apps/$PRGNAM.svg + mkdir -p $PKG/usr/share/applications $PKG/usr/share/pixmaps cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop -cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png +ln -s ../icons/hicolor/48x48/apps/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mv LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION |