summaryrefslogtreecommitdiffstats
path: root/multimedia/xvst/xvst.SlackBuild
diff options
context:
space:
mode:
author Larry Hajali <larryhaja[at]gmail[dot]com>2018-11-16 15:27:56 -0800
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2018-11-17 18:42:54 +0700
commit0a9b2dd6b684dbc71530ac35eedb4142a6d49f57 (patch)
tree1f1e77c7ef8bf908a2441a6fdc9c91e3590dd9e7 /multimedia/xvst/xvst.SlackBuild
parent6a036e9d97bb3e784b63a030bea6da65b2ebbd78 (diff)
downloadslackbuilds-0a9b2dd6b684dbc71530ac35eedb4142a6d49f57.tar.gz
slackbuilds-0a9b2dd6b684dbc71530ac35eedb4142a6d49f57.tar.xz
multimedia/xvst: Updated for version 2.5.2
Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
Diffstat (limited to 'multimedia/xvst/xvst.SlackBuild')
-rw-r--r--multimedia/xvst/xvst.SlackBuild27
1 files changed, 14 insertions, 13 deletions
diff --git a/multimedia/xvst/xvst.SlackBuild b/multimedia/xvst/xvst.SlackBuild
index 8dea0f53ef..4497714f9a 100644
--- a/multimedia/xvst/xvst.SlackBuild
+++ b/multimedia/xvst/xvst.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for xvst
-# Copyright 2010-2013 Larry Hajali <larryhaja[at]gmail[dot]com>
+# Copyright 2010-2018 Larry Hajali <larryhaja[at]gmail[dot]com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,13 +24,13 @@
PRGNAM=xvst
SRCNAM=xVideoServiceThief
-VERSION=${VERSION:-2.5.1}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-2.5.2}
+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
@@ -41,14 +41,18 @@ 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"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e
@@ -57,19 +61,19 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
-tar xvf $CWD/$SRCNAM-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz
+tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Patches from getdeb.net.
for i in $CWD/patches/*;do patch -p1 < $i;done
# remove exeutable bit from *.js files.
-find . -name "*\.js" -exec chmod -x '{}' \;
+find . -name "*\.js" -exec chmod 0644 '{}' \;
# Change file from DOS to Unix, change path for plugins and language files
# and make translations.
sed -i 's/\r//g' "how to compile.txt"
@@ -77,9 +81,6 @@ sed -i "s|getApplicationPath()\ +\ \"|\"/usr/share/$PRGNAM|g" src/options.cpp
lrelease-qt5 resources/translations/*.ts
rm -f resources/translations/template_for_new_translations.qm
-# Patch for Qt 5.5.1
-patch -p1 < $CWD/qtlocalpeer.patch
-
qmake-qt5 -set build_mode dynamic_build
qmake-qt5 PREFIX=/usr QMAKE_CFLAGS+="$SLKCFLAGS" QMAKE_CXXFLAGS+="$SLKCLAGS" \
-o Makefile xVideoServiceThief.pro