diff options
author | B. Watson <urchlay@slackware.uk> | 2023-01-15 00:49:50 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-01-21 10:22:09 +0700 |
commit | 8ab0aa7475565a79af053a700432d3f672d0ef18 (patch) | |
tree | c042c13c668fa85cc09e85c82a72110bd1932b38 /graphics/teighafileconverter/teighafileconverter.SlackBuild | |
parent | 018f8a40770ce4cd35d4b16462430dee41341f90 (diff) |
graphics/teighafileconverter: Strip bins/libs, rm bad icon.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/teighafileconverter/teighafileconverter.SlackBuild')
-rw-r--r-- | graphics/teighafileconverter/teighafileconverter.SlackBuild | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/graphics/teighafileconverter/teighafileconverter.SlackBuild b/graphics/teighafileconverter/teighafileconverter.SlackBuild index d9ff2bbff8500..1633c3b4c4c68 100644 --- a/graphics/teighafileconverter/teighafileconverter.SlackBuild +++ b/graphics/teighafileconverter/teighafileconverter.SlackBuild @@ -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} @@ -81,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 @@ -100,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 |