games/pioneer: Updated for version 20151214.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Hunter Sezen 2015-12-17 08:35:30 +07:00 committed by Willy Sudiarto Raharjo
parent d0e905ef12
commit 2f558fa673
3 changed files with 37 additions and 7 deletions

9
games/pioneer/doinst.sh Normal file
View file

@ -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

View file

@ -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

View file

@ -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++"