From 2f558fa673d866883186e554ebd0654b89fd50ca Mon Sep 17 00:00:00 2001 From: Hunter Sezen Date: Thu, 17 Dec 2015 08:35:30 +0700 Subject: games/pioneer: Updated for version 20151214. Signed-off-by: Willy Sudiarto Raharjo --- games/pioneer/doinst.sh | 9 +++++++++ games/pioneer/pioneer.SlackBuild | 29 +++++++++++++++++++++++++---- games/pioneer/pioneer.info | 6 +++--- 3 files changed, 37 insertions(+), 7 deletions(-) create mode 100644 games/pioneer/doinst.sh (limited to 'games/pioneer') diff --git a/games/pioneer/doinst.sh b/games/pioneer/doinst.sh new file mode 100644 index 0000000000000..3e5691a052b5b --- /dev/null +++ b/games/pioneer/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 usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/games/pioneer/pioneer.SlackBuild b/games/pioneer/pioneer.SlackBuild index 333b198ccc70f..97881b45fecb4 100644 --- a/games/pioneer/pioneer.SlackBuild +++ b/games/pioneer/pioneer.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=pioneer -VERSION=${VERSION:-20151130} +VERSION=${VERSION:-20151214} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -98,15 +98,36 @@ EOF find . -perm 644 -exec chmod 755 {} \; cd - +# Write a desktop file +mkdir -p $PKG/usr/share/applications +cat > $PKG/usr/share/applications/$PRGNAM.desktop </dev/null 2>/dev/null; then + mkdir -p $PKG/usr/share/icons/hicolor/${size}/apps + cp -a application-icon/pngs/*${size}*.png $PKG/usr/share/icons/hicolor/${size}/apps + elif [ "$size" = "scalable" ]; then + mkdir -p $PKG/usr/share/icons/hicolor/${size}/apps + cp -a application-icon/*.svg $PKG/usr/share/icons/hicolor/${size}/apps + fi done +# Remove empty .gitignore files +find $PKG/opt/$PRGNAM-$VERSION/data -name ".gitignore" -exec rm -f {} \; + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -aR licenses *.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/games/pioneer/pioneer.info b/games/pioneer/pioneer.info index 9b812d333715f..0513740045500 100644 --- a/games/pioneer/pioneer.info +++ b/games/pioneer/pioneer.info @@ -1,8 +1,8 @@ PRGNAM="pioneer" -VERSION="20151130" +VERSION="20151214" HOMEPAGE="http://pioneerspacesim.net/" -DOWNLOAD="https://github.com/pioneerspacesim/pioneer/archive/20151130.tar.gz" -MD5SUM="39cf3e26847bff78582dcb8a0880e52d" +DOWNLOAD="https://github.com/pioneerspacesim/pioneer/archive/20151214.tar.gz" +MD5SUM="59a12be6e2f8e4ae0d2ff7e7ebe02603" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="SDL2_image assimp libsigc++" -- cgit v1.2.3