diff options
author | Hunter Sezen <ovariegata@yahoo.com> | 2015-12-17 08:35:30 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-12-18 09:19:32 +0700 |
commit | 2f558fa673d866883186e554ebd0654b89fd50ca (patch) | |
tree | f59e5239e8535e2507bbcad67008bf58d4a1129c /games/pioneer | |
parent | d0e905ef1298c2c1567cfbe7f7f10e3cdb143932 (diff) |
games/pioneer: Updated for version 20151214.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/pioneer')
-rw-r--r-- | games/pioneer/doinst.sh | 9 | ||||
-rw-r--r-- | games/pioneer/pioneer.SlackBuild | 29 | ||||
-rw-r--r-- | games/pioneer/pioneer.info | 6 |
3 files changed, 37 insertions, 7 deletions
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 <<EOF +[Desktop Entry] +Name=$(echo "${PRGNAM^}") +Exec=$PRGNAM +Icon=badge-full +Type=Application +Comment=$(echo "${PRGNAM^}") (space adventure game) +Categories=Game;AdventureGame; +EOF + # Add data files to package mv ${PKG}data $PKG/opt/$PRGNAM-$VERSION/data cp -a data/listdata* $PKG/opt/$PRGNAM-$VERSION/data -# Remove empty .gitignore files -for i in $(find $PKG/opt/$PRGNAM-$VERSION/data -name ".gitignore"); do - rm -f $i +# Add missing icons to package +for size in $(find /usr/share/icons/hicolor -type d -mindepth 1 -maxdepth 1 -exec basename {} \;); do + if ls application-icon/pngs/*${size}* 1>/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++" |