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>
This commit is contained in:
B. Watson 2023-01-15 00:49:50 -05:00 committed by Willy Sudiarto Raharjo
parent 018f8a4077
commit 8ab0aa7475
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 8 additions and 6 deletions

View File

@ -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