summaryrefslogtreecommitdiff
path: root/games/FlightGear
diff options
context:
space:
mode:
authorPanagiotis Nikolaou <hostmaster@slackonly.com>2017-03-04 07:11:29 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-03-04 07:19:34 +0700
commitb75e8023cc2cac89e8c9ebb4f1900861ce55d1b5 (patch)
treefc4df8b893a384d1a4f30d7e9df3edbd80ead5c2 /games/FlightGear
parent10259a88f377f94b06a072341ba858e9b36e4abe (diff)
downloadslackbuilds-b75e8023cc2cac89e8c9ebb4f1900861ce55d1b5.tar.gz
games/FlightGear: Updated for version 2017.1.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/FlightGear')
-rw-r--r--games/FlightGear/FlightGear.SlackBuild12
-rw-r--r--games/FlightGear/FlightGear.desktop11
-rw-r--r--games/FlightGear/FlightGear.info8
-rw-r--r--games/FlightGear/FlightGear.pngbin0 -> 487 bytes
-rw-r--r--games/FlightGear/doinst.sh13
5 files changed, 39 insertions, 5 deletions
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
--- /dev/null
+++ b/games/FlightGear/FlightGear.png
Binary files 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