summaryrefslogtreecommitdiffstats
path: root/ham/xgridloc/xgridloc.SlackBuild
diff options
context:
space:
mode:
author JK Wood <joshuakwood@gmail.com>2014-07-18 11:09:35 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2014-07-18 11:09:35 +0700
commit328090635f93aabbed356a3c667fd187ea80cbd0 (patch)
tree0aa0f73b033ed41cb4e943fbc6d2faee8f95bfa4 /ham/xgridloc/xgridloc.SlackBuild
parentd990a76b8c20ab21f9e77573dda2a4c9f7619e32 (diff)
downloadslackbuilds-328090635f93aabbed356a3c667fd187ea80cbd0.tar.gz
slackbuilds-328090635f93aabbed356a3c667fd187ea80cbd0.tar.xz
ham/xgridloc: Added desktop file and icon.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'ham/xgridloc/xgridloc.SlackBuild')
-rw-r--r--ham/xgridloc/xgridloc.SlackBuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/ham/xgridloc/xgridloc.SlackBuild b/ham/xgridloc/xgridloc.SlackBuild
index 06405a1055..379c4dd2ed 100644
--- a/ham/xgridloc/xgridloc.SlackBuild
+++ b/ham/xgridloc/xgridloc.SlackBuild
@@ -22,7 +22,7 @@
PRGNAM=xgridloc
VERSION=${VERSION:-1.5}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -83,6 +83,11 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install-strip DESTDIR=$PKG
+mkdir -p $PKG/usr/share/applications
+mkdir -p $PKG/usr/share/pixmaps
+install -m 644 $CWD/xgridloc.desktop $PKG/usr/share/applications
+install -m 644 $CWD/xgridloc.png $PKG/usr/share/pixmaps
+
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
@@ -94,6 +99,7 @@ find $PKG/usr/doc -type f -exec chmod 644 {} \;
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG${PKGTYPE:-.tgz}