diff options
Diffstat (limited to 'games/FlightGear/FlightGear.SlackBuild')
-rw-r--r-- | games/FlightGear/FlightGear.SlackBuild | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/games/FlightGear/FlightGear.SlackBuild b/games/FlightGear/FlightGear.SlackBuild index fed48f1bff..8b9365f1b6 100644 --- a/games/FlightGear/FlightGear.SlackBuild +++ b/games/FlightGear/FlightGear.SlackBuild @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for FlightGear # Copyright before version 2016.3.1 by Diego Pantano <poplin.dp@gmail.com> @@ -24,11 +24,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=FlightGear SRCNAM=flightgear -VERSION=${VERSION:-2020.3.6} +VERSION=${VERSION:-2020.3.19} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -38,7 +41,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -59,13 +69,6 @@ fi set -e -# Choose if we build the internal Qt launcher. -if [ "${QT5}" == "yes" ]; then - OPT="$OPT -DENABLE_QT=ON" -else - OPT="$OPT -DENABLE_QT=OFF" -fi - rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP @@ -87,7 +90,6 @@ cd build -DCMAKE_INSTALL_PREFIX=/usr \ -DEVENT_INPUT="ON" \ -DFG_DATA_DIR=/usr/share/${PRGNAM} \ - $OPT \ -DCMAKE_BUILD_TYPE=Release \ -DFG_BUILD_TYPE=Release .. make @@ -104,7 +106,7 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ - AUTHORS ChangeLog COPYING INSTALL NEWS README* Thanks docs-mini/ \ + AUTHORS ChangeLog COPYING NEWS README* Thanks docs-mini/ \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -112,14 +114,11 @@ 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 +install -D -m0644 $CWD/FlightGear.desktop \ + $PKG/usr/share/applications/FlightGear.desktop +install -D -m0644 $CWD/FlightGear.png \ + $PKG/usr/share/icons/hicolor/48x48/apps/FlightGear.png +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |