aboutsummaryrefslogtreecommitdiff
path: root/games/fgrun/fgrun.SlackBuild
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2012-09-16 23:29:31 -0400
committerRobby Workman <rworkman@slackbuilds.org>2012-09-16 23:31:35 -0500
commitb0754deaf8d6a58310a1fc0d116b06bd777203ba (patch)
treef496e87c8ed73b092c422e7b83b0af310126141c /games/fgrun/fgrun.SlackBuild
parentb4f1a3e7ff0e77227030908554300b3f276dddd0 (diff)
games/fgrun: Updated for version 1.6.2
Diffstat (limited to 'games/fgrun/fgrun.SlackBuild')
-rw-r--r--games/fgrun/fgrun.SlackBuild42
1 files changed, 24 insertions, 18 deletions
diff --git a/games/fgrun/fgrun.SlackBuild b/games/fgrun/fgrun.SlackBuild
index f118d932504c1..944b6f20f208a 100644
--- a/games/fgrun/fgrun.SlackBuild
+++ b/games/fgrun/fgrun.SlackBuild
@@ -3,16 +3,14 @@
# Written by Diego Pantano <poplin.dp@gmail.com>
PRGNAM=fgrun
-VERSION=${VERSION:-1.5.2}
+VERSION=${VERSION:-1.6.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -42,7 +40,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -51,32 +49,40 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --with-x \
- --build=$ARCH-slackware-linux
+# Fix a few bugs.
+patch -p1 < $CWD/fgrun-1.6.1-fix-crash-when-setting-defaults.patch
+patch -p1 < $CWD/fgrun-1.6.2-fix-reloadpath-logic.patch
-make
-make install DESTDIR=$PKG
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
+cd ..
+
+mkdir -p $PKG/etc/fltk/flightgear.org
+install -m 0644 $CWD/fgrun.prefs $PKG/etc/fltk/flightgear.org/fgrun.prefs
+
+mkdir -p $PKG/usr/share/{applications,pixmaps}
+install -m 0644 $CWD/fgrun.desktop $PKG/usr/share/applications/
+install -m 0644 $CWD/fgrun.png $PKG/usr/share/pixmaps/
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS COPYING ChangeLog INSTALL NEWS README* \
+ AUTHORS COPYING ChangeLog NEWS README \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}