summaryrefslogtreecommitdiffstats
path: root/graphics/teighafileconverter/teighafileconverter.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/teighafileconverter/teighafileconverter.SlackBuild')
-rw-r--r--graphics/teighafileconverter/teighafileconverter.SlackBuild19
1 files changed, 9 insertions, 10 deletions
diff --git a/graphics/teighafileconverter/teighafileconverter.SlackBuild b/graphics/teighafileconverter/teighafileconverter.SlackBuild
index a67c89cbc2..1633c3b4c4 100644
--- a/graphics/teighafileconverter/teighafileconverter.SlackBuild
+++ b/graphics/teighafileconverter/teighafileconverter.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for TeighaFileConverter
# Copyright 2012-2014 Fridrich von Stauffenberg <email removed>
-# Copyright 2018 B. Watson <yalhcru@gmail.com>
+# Copyright 2018 B. Watson <urchlay@slackware.uk>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,6 +23,7 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20230115 bkw: BUILD=2, strip bins/libs and get rid of bad icon.
# 20180724 bkw:
# - Take over maintenance.
# - Update for v19.5.0.0. This adds x86_64 support, but means qt5 is
@@ -37,7 +38,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=teighafileconverter
VERSION=${VERSION:-19.5.0.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -51,9 +52,6 @@ fi
ORIGNAM=TeighaFileConverter
-# 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
@@ -84,17 +82,15 @@ cd $PKG
ar p $CWD/${ORIGNAM}_QT5_lnx${DEBARCH}_*dll.deb data.tar.gz | tar xvfz -
chown -R root:root .
-find . -type d -exec chmod 755 {} \;
-find -L . \! -name '*.so' \! -name '*.tx*' -type f -exec chmod 644 {} \;
-
-# Binaries aren't stripped, according to 'file', but they don't get any
-# smaller if I strip them, so leave them as-is.
+find . -type d -exec chmod 755 {} \+
+find -L . \! -name '*.so' \! -name '*.tx*' -type f -exec chmod 644 {} \+
PKGLIB=$PKG/usr/lib$LIBDIRSUFFIX
mkdir -p $PKGLIB
mv $PKG/usr/bin/${ORIGNAM}_$VERSION $PKGLIB/$ORIGNAM
sed "s,@LIBDIRSUFFIX@,$LIBDIRSUFFIX,g" $CWD/$PRGNAM.sh > $PKG/usr/bin/$ORIGNAM
chmod 755 $PKG/usr/bin/$ORIGNAM $PKGLIB/$ORIGNAM/$ORIGNAM
+strip $PKG/usr/lib*/*/*
# .desktop file spec says they *must* be UTF-8, upstream used 8859-1...
PKGAPP=$PKG/usr/share/applications
@@ -103,6 +99,9 @@ iconv -f ISO-8859-1 -t UTF-8 $PKGAPP/${ORIGNAM}_$VERSION.desktop | \
$PKGAPP/${ORIGNAM}.desktop
rm -f $PKGAPP/${ORIGNAM}_$VERSION.desktop
+# 16x16 icon is the wrong size (17x17), just nuke it
+rm -rf $PKG/usr/share/icons/hicolor/16x16
+
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKGDOC
mv $PKG/usr/share/doc/$ORIGNAM/* $PKGDOC