aboutsummaryrefslogtreecommitdiff
path: root/system/qtfm/qtfm.SlackBuild
diff options
context:
space:
mode:
authorOle-André Rodlie <ole.andre.rodlie@gmail.com>2018-08-12 23:39:05 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-08-18 08:39:46 +0700
commitbe69465523b50544d53f7b5b5d0fbe0050868eec (patch)
tree48846a595b38f3b7126aedd95f68ec0a4d44e116 /system/qtfm/qtfm.SlackBuild
parent3089173896b885c9a685d15043af82286abd70ce (diff)
system/qtfm: Updated for version 6.1.0 + new maintainer.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/qtfm/qtfm.SlackBuild')
-rw-r--r--system/qtfm/qtfm.SlackBuild34
1 files changed, 18 insertions, 16 deletions
diff --git a/system/qtfm/qtfm.SlackBuild b/system/qtfm/qtfm.SlackBuild
index 59cb3c320329..a3e1a94248fc 100644
--- a/system/qtfm/qtfm.SlackBuild
+++ b/system/qtfm/qtfm.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Slackware build script for qtFM
+# Slackware build script for QtFM
# Copyright 2011, 2012, Bojan Popovic, Belgrade, Serbia <bocke@slackware-srbija.org>
# All rights reserved.
@@ -22,14 +22,16 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Modified by Ole-André Rodlie, <ole.andre.rodlie@gmail.com>
+
PRGNAM=qtfm
-VERSION=${VERSION:-5.5}
+VERSION=${VERSION:-6.1.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -40,8 +42,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@@ -69,25 +71,25 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Set doc path to /usr/doc/$PRGNAM-$VERSION in qtfm.pro
-sed -i "s,usr/share/doc/$PRGNAM,usr/doc/$PRGNAM-$VERSION," qtfm.pro
-
-# Commented out by rworkman -- why is this a good idea?
-# Set share path to /usr/share/$PRGNAM-$VERSION in qtfm.pro and main.cpp
-# sed -i "s,usr/share/$PRGNAM,usr/share/$PRGNAM-$VERSION," qtfm.pro src/main.cpp
-
qmake \
+ PREFIX=/usr \
+ DOCDIR=/usr/doc \
+ MANDIR=/usr/man \
+ CONFIG+=release \
QMAKE_CFLAGS="$SLKCFLAGS" \
- QMAKE_CXXFLAGS="$SLKCFLAGS" \
- $PRGNAM.pro
+ QMAKE_CXXFLAGS="$SLKCFLAGS"
make
make install INSTALL_ROOT=$PKG
find $PKG -print0 | xargs -0 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 CHANGELOG COPYING README $PKG/usr/doc/$PRGNAM-$VERSION
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+if [ ! -d "$PKG/usr/doc/$PRGNAM-$VERSION" ]; then
+ mkdir -p "$PKG/usr/doc/$PRGNAM-$VERSION"
+fi
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install