summaryrefslogtreecommitdiffstats
path: root/graphics/teighafileconverter
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/teighafileconverter')
-rw-r--r--graphics/teighafileconverter/teighafileconverter.SlackBuild31
-rw-r--r--graphics/teighafileconverter/teighafileconverter.info8
2 files changed, 24 insertions, 15 deletions
diff --git a/graphics/teighafileconverter/teighafileconverter.SlackBuild b/graphics/teighafileconverter/teighafileconverter.SlackBuild
index 80bdd64851..1633c3b4c4 100644
--- a/graphics/teighafileconverter/teighafileconverter.SlackBuild
+++ b/graphics/teighafileconverter/teighafileconverter.SlackBuild
@@ -1,9 +1,9 @@
-#!/bin/sh
+#!/bin/bash
# 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
@@ -33,10 +34,13 @@
# - Name the x86 package according to ARCH (i586 or i686). No effect on
# the package contents, just the filename.
+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}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -48,7 +52,11 @@ fi
ORIGNAM=TeighaFileConverter
-CWD=$(pwd)
+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}
@@ -74,25 +82,26 @@ 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
iconv -f ISO-8859-1 -t UTF-8 $PKGAPP/${ORIGNAM}_$VERSION.desktop | \
sed 's@/usr/bin/@@g' > \
- $PKGAPP/${ORIGNAM}.deskop
+ $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
@@ -104,4 +113,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
diff --git a/graphics/teighafileconverter/teighafileconverter.info b/graphics/teighafileconverter/teighafileconverter.info
index 9cd78e6cff..52f16e54d8 100644
--- a/graphics/teighafileconverter/teighafileconverter.info
+++ b/graphics/teighafileconverter/teighafileconverter.info
@@ -1,10 +1,10 @@
PRGNAM="teighafileconverter"
VERSION="19.5.0.0"
HOMEPAGE="https://www.opendesign.com/guestfiles/TeighaFileConverter"
-DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/TeighaFileConverter_QT5_lnxX86_4.7dll.deb"
+DOWNLOAD="https://slackware.uk/~urchlay/src/TeighaFileConverter_QT5_lnxX86_4.7dll.deb"
MD5SUM="68e6185b3419fcf31d53da1fe34142a4"
-DOWNLOAD_x86_64="http://urchlay.naptime.net/~urchlay/src/TeighaFileConverter_QT5_lnxX64_4.7dll.deb"
+DOWNLOAD_x86_64="https://slackware.uk/~urchlay/src/TeighaFileConverter_QT5_lnxX64_4.7dll.deb"
MD5SUM_x86_64="a9da11f38a74a767812f1a11d387bbbf"
-REQUIRES="qt5"
+REQUIRES=""
MAINTAINER="B. Watson"
-EMAIL="yalhcru@gmail.com"
+EMAIL="urchlay@slackware.uk"