diff options
Diffstat (limited to 'games/chessx')
-rw-r--r-- | games/chessx/chessx.SlackBuild | 8 | ||||
-rw-r--r-- | games/chessx/doinst.sh | 7 |
2 files changed, 13 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} diff --git a/games/chessx/doinst.sh b/games/chessx/doinst.sh new file mode 100644 index 0000000000..9a8ded3c60 --- /dev/null +++ b/games/chessx/doinst.sh @@ -0,0 +1,7 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 +fi |