diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2018-01-24 17:53:00 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-01-27 07:43:43 +0700 |
commit | b538d5eea15eb359de7188f70648dc149d02cc2c (patch) | |
tree | 8174ee4093255a38880606528f854f505e03aba4 /games/chessx/chessx.SlackBuild | |
parent | e9421ef3a93f29df0efaebc678e5b1bfc5a869d5 (diff) | |
download | slackbuilds-b538d5eea15eb359de7188f70648dc149d02cc2c.tar.gz |
games/chessx: Added an icon and a desktop file.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'games/chessx/chessx.SlackBuild')
-rw-r--r-- | games/chessx/chessx.SlackBuild | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/games/chessx/chessx.SlackBuild b/games/chessx/chessx.SlackBuild index bcb00b8a0c..81f92468ed 100644 --- a/games/chessx/chessx.SlackBuild +++ b/games/chessx/chessx.SlackBuild @@ -76,8 +76,11 @@ make # Create install directory since there is no 'make install' provided # and make only outputs a single binary (chessx) -mkdir -p $PKG/usr/bin -cp -a ./release/chessx $PKG/usr/bin +install -D -m 0755 release/$PRGNAM $PKG/usr/bin/$PRGNAM + +# Install also an icon and a desktop file +install -D -m 0644 data/images/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png +install -D -m 0644 unix/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop 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 @@ -88,6 +91,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild 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} |