From b75e8023cc2cac89e8c9ebb4f1900861ce55d1b5 Mon Sep 17 00:00:00 2001 From: Panagiotis Nikolaou Date: Sat, 4 Mar 2017 07:11:29 +0700 Subject: games/FlightGear: Updated for version 2017.1.1. Signed-off-by: Willy Sudiarto Raharjo --- games/FlightGear/FlightGear.SlackBuild | 12 +++++++++++- games/FlightGear/FlightGear.desktop | 11 +++++++++++ games/FlightGear/FlightGear.info | 8 ++++---- games/FlightGear/FlightGear.png | Bin 0 -> 487 bytes games/FlightGear/doinst.sh | 13 +++++++++++++ 5 files changed, 39 insertions(+), 5 deletions(-) create mode 100644 games/FlightGear/FlightGear.desktop create mode 100644 games/FlightGear/FlightGear.png create mode 100644 games/FlightGear/doinst.sh (limited to 'games') diff --git a/games/FlightGear/FlightGear.SlackBuild b/games/FlightGear/FlightGear.SlackBuild index fd972f87e3..c6ace018fe 100644 --- a/games/FlightGear/FlightGear.SlackBuild +++ b/games/FlightGear/FlightGear.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=FlightGear SRCNAM=flightgear -VERSION=${VERSION:-2016.4.4} +VERSION=${VERSION:-2017.1.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -108,5 +108,15 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +# Add a desktop entry for the GUI launcher +case "$QT5" in + yes) install -D -m0644 $CWD/FlightGear.desktop \ + $PKG/usr/share/applications/FlightGear.desktop + install -D -m0644 $CWD/FlightGear.png \ + $PKG/usr/share/icons/hicolor/64x64/apps/FlightGear.png + cat $CWD/doinst.sh > $PKG/install/doinst.sh +;; +esac + cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/games/FlightGear/FlightGear.desktop b/games/FlightGear/FlightGear.desktop new file mode 100644 index 0000000000..80e75dd182 --- /dev/null +++ b/games/FlightGear/FlightGear.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0 +Encoding=UTF-8 +Name=FlightGear +GenericName=FlightGear +Comment=FlightGear Launcher +Exec=fgfs --launcher +Icon=/usr/share/icons/hicolor/64x64/apps/FlightGear.png +Terminal=false +Type=Application +Categories=Game; diff --git a/games/FlightGear/FlightGear.info b/games/FlightGear/FlightGear.info index 4675000f7a..13c2a24675 100644 --- a/games/FlightGear/FlightGear.info +++ b/games/FlightGear/FlightGear.info @@ -1,10 +1,10 @@ PRGNAM="FlightGear" -VERSION="2016.4.4" +VERSION="2017.1.1" HOMEPAGE="http://www.flightgear.org/" -DOWNLOAD="https://downloads.sourceforge.net/project/flightgear/release-2016.4/flightgear-2016.4.4.tar.bz2" -MD5SUM="b1a1f12786debaaf8970595cad98d59f" +DOWNLOAD="https://downloads.sourceforge.net/project/flightgear/release-2017.1/flightgear-2017.1.1.tar.bz2" +MD5SUM="0e190ff6b824d02e968bc28bf738f9d9" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="FlightGear-data SimGear" +REQUIRES="FlightGear-data SimGear plib" MAINTAINER="Panagiotis Nikolaou" EMAIL="hostmaster@slackonly.com" diff --git a/games/FlightGear/FlightGear.png b/games/FlightGear/FlightGear.png new file mode 100644 index 0000000000..a0d912dfbf Binary files /dev/null and b/games/FlightGear/FlightGear.png differ diff --git a/games/FlightGear/doinst.sh b/games/FlightGear/doinst.sh new file mode 100644 index 0000000000..aea0f894eb --- /dev/null +++ b/games/FlightGear/doinst.sh @@ -0,0 +1,13 @@ +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 + +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 -- cgit v1.2.3