aboutsummaryrefslogtreecommitdiff
path: root/office
diff options
context:
space:
mode:
authorPetar Petrov <slackalaxy@gmail.com>2023-09-03 09:24:14 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-09-03 09:35:03 +0700
commit6ceac551cb322885d59917da47a2d16774c4931c (patch)
tree5eddc8b77c05d2ed5e813f9ae5cd33ec349cf62f /office
parent5b5508d2db9f5b9c98234dbc5dc55e6947096878 (diff)
office/MasterPDFEditor4: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r--office/MasterPDFEditor4/MasterPDFEditor4.SlackBuild15
1 files changed, 7 insertions, 8 deletions
diff --git a/office/MasterPDFEditor4/MasterPDFEditor4.SlackBuild b/office/MasterPDFEditor4/MasterPDFEditor4.SlackBuild
index 71ba6fbd009d..ccf179c3825e 100644
--- a/office/MasterPDFEditor4/MasterPDFEditor4.SlackBuild
+++ b/office/MasterPDFEditor4/MasterPDFEditor4.SlackBuild
@@ -28,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=MasterPDFEditor4
SRCNAM=master-pdf-editor
VERSION=${VERSION:-4.3.89}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -62,6 +62,7 @@ cd $TMP
rm -rf $SRCNAM-${VERSION%.*.*}
tar xvf $CWD/$SRCNAM-${VERSION}_qt5.amd64.tar.gz
cd $SRCNAM-${VERSION%.*.*}
+
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -73,14 +74,12 @@ mkdir -p $PKG/opt/$PRGNAM
cp -a --no-preserve=ownership * $PKG/opt/$PRGNAM
mkdir -p $PKG/usr/share/{applications,pixmaps}
-cp masterpdfeditor${VERSION%.*.*}.desktop $PKG/usr/share/applications/$PRGNAM.desktop
cp masterpdfeditor${VERSION%.*.*}.png $PKG/usr/share/pixmaps/$PRGNAM.png
-
-sed -i "s:/opt/master-pdf-editor-4/masterpdfeditor4:$PRGNAM:g" \
- $PKG/usr/share/applications/$PRGNAM.desktop
-sed -i "s:Categories=Office;Graphics;:Categories=Office;:" \
- $PKG/usr/share/applications/$PRGNAM.desktop
-
+cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
mkdir -p $PKG/usr/bin
cd $PKG/usr/bin
ln -s ../../opt/$PRGNAM/masterpdfeditor4 $PRGNAM