diff options
Diffstat (limited to 'games')
-rw-r--r-- | games/mgba/doinst.sh | 9 | ||||
-rw-r--r-- | games/mgba/mgba.SlackBuild | 14 |
2 files changed, 19 insertions, 4 deletions
diff --git a/games/mgba/doinst.sh b/games/mgba/doinst.sh new file mode 100644 index 0000000000..65c7e2eeb9 --- /dev/null +++ b/games/mgba/doinst.sh @@ -0,0 +1,9 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/games/mgba/mgba.SlackBuild b/games/mgba/mgba.SlackBuild index 2c0696f5d2..feb619ce99 100644 --- a/games/mgba/mgba.SlackBuild +++ b/games/mgba/mgba.SlackBuild @@ -77,9 +77,12 @@ cd build cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR:PATH=lib$LIBDIRSUFFIX \ - -DBUILD_QT=${QT} \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_BINDIR=games \ + -DCMAKE_INSTALL_DOCDIR=doc/$PRGNAM-$VERSION \ + -DCMAKE_INSTALL_LIBDIR:PATH=lib$LIBDIRSUFFIX \ + -DMANDIR=man \ + -DBUILD_QT=${QT} \ -DCMAKE_BUILD_TYPE=Release .. make make install DESTDIR=$PKG @@ -88,13 +91,16 @@ cd .. 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 +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a CHANGES LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -rm -rf $PKG/usr/share 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} |