summaryrefslogtreecommitdiff
path: root/misc/asterixInspector
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-08 18:23:11 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-09 15:45:13 +0700
commiteea3b9565e0c55c150573b0b32e016656b6f1485 (patch)
tree19d0d15f5b4e8a4061201bdd87e3ea2bb0739dd5 /misc/asterixInspector
parent2429424496836e2f04a27a3bc6cc63a26161e660 (diff)
downloadslackbuilds-eea3b9565e0c55c150573b0b32e016656b6f1485.tar.gz
misc/asterixInspector: Strip binary, fix .desktop.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc/asterixInspector')
-rw-r--r--misc/asterixInspector/asterixInspector.SlackBuild18
-rw-r--r--misc/asterixInspector/asterixInspector.desktop3
2 files changed, 9 insertions, 12 deletions
diff --git a/misc/asterixInspector/asterixInspector.SlackBuild b/misc/asterixInspector/asterixInspector.SlackBuild
index e8fb43fda9..8989f12be4 100644
--- a/misc/asterixInspector/asterixInspector.SlackBuild
+++ b/misc/asterixInspector/asterixInspector.SlackBuild
@@ -23,11 +23,15 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220408 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - strip binary.
+# - abs path to icon in .desktop.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=asterixInspector
VERSION=${VERSION:-0.13.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -39,9 +43,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# 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
@@ -62,18 +63,15 @@ cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
qmake-qt5
make
-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,share/{applications,pixmaps,asterixInspector}}
-cp -a asterixInspector $PKG/usr/bin
+install -s -m0755 asterixInspector $PKG/usr/bin
cp -a asterixSpecification $PKG/usr/share/asterixInspector
cat images/radar.svg > $PKG/usr/share/pixmaps/asterixInspector.svg
cat $CWD/asterixInspector.desktop > $PKG/usr/share/applications/asterixInspector.desktop
diff --git a/misc/asterixInspector/asterixInspector.desktop b/misc/asterixInspector/asterixInspector.desktop
index c48d3b0911..9a01f3018e 100644
--- a/misc/asterixInspector/asterixInspector.desktop
+++ b/misc/asterixInspector/asterixInspector.desktop
@@ -3,8 +3,7 @@ Name=asterixInspector
GenericName=A viewer for EUROCONTROL ASTERIX files
Categories=Utility;Education;
Exec=asterixInspector
-Icon=asterixInspector
+Icon=/usr/share/pixmaps/asterixInspector.svg
Terminal=false
Type=Application
StartupNotify=true
-