aboutsummaryrefslogtreecommitdiff
path: root/academic/gtypist/gtypist.SlackBuild
diff options
context:
space:
mode:
authorAaditya Bagga <aaditya_gnulinux@zoho.com>2014-09-22 18:35:18 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-09-25 17:01:33 +0700
commite143dcab1a3334da101a166d9a9f0cff9c01159e (patch)
tree8515e95bd44ffa4492d8d038a7a30e68e793b1f4 /academic/gtypist/gtypist.SlackBuild
parent233432d3dbefca32264401b24761b9c1e9f82706 (diff)
academic/gtypist: Added desktop file.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/gtypist/gtypist.SlackBuild')
-rw-r--r--academic/gtypist/gtypist.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/academic/gtypist/gtypist.SlackBuild b/academic/gtypist/gtypist.SlackBuild
index c75f6f6cd5fd6..d06518afd938d 100644
--- a/academic/gtypist/gtypist.SlackBuild
+++ b/academic/gtypist/gtypist.SlackBuild
@@ -22,7 +22,7 @@
PRGNAM=gtypist
VERSION=${VERSION:-2.9.5}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -64,10 +64,10 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
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 \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -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 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -84,6 +84,10 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
+# Copy .desktop file
+mkdir -p $PKG/usr/share/applications
+cp $CWD/gtypist.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