diff options
Diffstat (limited to 'multimedia/xvst/xvst.SlackBuild')
-rw-r--r-- | multimedia/xvst/xvst.SlackBuild | 70 |
1 files changed, 39 insertions, 31 deletions
diff --git a/multimedia/xvst/xvst.SlackBuild b/multimedia/xvst/xvst.SlackBuild index 8b6a7e0470a09..033ca69467060 100644 --- a/multimedia/xvst/xvst.SlackBuild +++ b/multimedia/xvst/xvst.SlackBuild @@ -2,11 +2,30 @@ # Slackware build script for xvst -# Written by Larry Hajali <larryhaja[at]gmail[dot]com> +# Copyright 2010-2013 Larry Hajali <larryhaja[at]gmail[dot]com> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=xvst -VERSION=${VERSION:-2.4.1} -BUILD=${BUILD:-2} +SRCNAM=xVideoServiceThief +VERSION=${VERSION:-2.5} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -37,42 +56,31 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -mkdir $PRGNAM-$VERSION -cd $PRGNAM-$VERSION -unzip $CWD/xVST_${VERSION//\./_}_src.zip -# Xvst hasn't had a stable release in a couple years. -# However, the developer(s) have updated the plugins in svn. -# Add PLUGINS=yes to the slackbuild to download the updated -# plugins/translations. -if [ "${PLUGINS:-no}" == "yes" ]; then - svn export --force https://xviservicethief.svn.sourceforge.net/svnroot/xviservicethief/trunk/resources/services \ - resources/services - svn export --force https://xviservicethief.svn.sourceforge.net/svnroot/xviservicethief/trunk/resources/translations/definitions \ - resources/translations/definitions -fi +rm -rf $SRCNAM-$VERSION +tar -xvf $CWD/$SRCNAM-2.5.tar.gz || tar -xvf $CWD/$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 \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; - + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -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 {} \; + +# 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 '{}' \; # 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" sed -i "s|getApplicationPath()\ +\ \"|\"/usr/share/$PRGNAM|g" src/options.cpp -lrelease resources/translations/*.ts +lrelease-qt5 resources/translations/*.ts rm -f resources/translations/template_for_new_translations.qm -# Fix to compile against gcc 4.7.x. -patch -p1 < $CWD/gcc-4.7.patch - -qmake -set build_mode dynamic_build -qmake PREFIX=/usr -o Makefile xVideoServiceThief.pro -make \ - CFLAGS="-pipe $SLKCFLAGS -Wall -W -D_REENTRANT \$(DEFINES)" \ - CXXFLAGS="-pipe $SLKCFLAGS -Wall -W -D_REENTRANT \$(DEFINES)" +qmake-qt5 -set build_mode dynamic_build +qmake-qt5 PREFIX=/usr QMAKE_CFLAGS+="$SLKCFLAGS" QMAKE_CXXFLAGS+="$SLKCLAGS" \ + -o Makefile xVideoServiceThief.pro +make # Install program and corresponding files. install -D -m 0755 bin/$PRGNAM $PKG/usr/bin/$PRGNAM |