summaryrefslogtreecommitdiff
path: root/audio/mixxx/mixxx.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2018-08-10 15:15:39 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-08-11 07:23:13 +0700
commit40fb166516ee8d7793055fd7f972db21ffc8735d (patch)
tree3bb0ce3cea87f59a4f8ffb2a433c6041b3b88e83 /audio/mixxx/mixxx.SlackBuild
parent4fee94826fc30884e7d6d18c1f682b3314d0e493 (diff)
downloadslackbuilds-40fb166516ee8d7793055fd7f972db21ffc8735d.tar.gz
audio/mixxx: Updated for version 2.1.1, changed maintainer.
Added the new dependency opusfile Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'audio/mixxx/mixxx.SlackBuild')
-rw-r--r--audio/mixxx/mixxx.SlackBuild43
1 files changed, 23 insertions, 20 deletions
diff --git a/audio/mixxx/mixxx.SlackBuild b/audio/mixxx/mixxx.SlackBuild
index 4ee8066b9c..f122085abe 100644
--- a/audio/mixxx/mixxx.SlackBuild
+++ b/audio/mixxx/mixxx.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for mixxx
# Copyright 2011 Elvio "HelLViS69" Basello <hellvis69@gmail.com>
+# Copyright 2018 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,14 +23,16 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Modified by SlackBuilds.org
+
PRGNAM=mixxx
-VERSION=${VERSION:-2.0.0}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-2.1.1}
+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 +43,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"
@@ -54,46 +57,46 @@ else
LIBDIRSUFFIX=""
fi
-SRCVER=$(echo $VERSION | tr _ - )
-
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$SRCVER
-tar xvf $CWD/$PRGNAM-$SRCVER-src.tar.gz
-cd $PRGNAM-$SRCVER
+rm -rf $PRGNAM-release-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-release-$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 {} \;
-
-# Upstream patch for the newer chromaprint
-patch -p1 < $CWD/chromaprint-1.4.patch
+ \( -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 {} \;
# Fix library installation path
sed -i "s|'lib'|'lib$LIBDIRSUFFIX'|" build/depends.py src/SConscript || exit 1
sed -i "s|usr/lib|usr/lib$LIBDIRSUFFIX|" src/SConscript || exit 1
+export SCONSFLAGS="-j $(nproc)"
CFLAGS="$SLKCFLAGS" \
QTDIR=/usr/lib$LIBDIRSUFFIX/qt \
scons \
shoutcast=1 \
faad=1 \
+ opus=1 \
+ build=release \
+ optimize=portable \
+ virtualize=0 \
+ localecompare=1 \
+ qt_sqlite_plugin=0 \
prefix=/usr
QTDIR=/usr/lib$LIBDIRSUFFIX/qt \
scons \
install_root=$PKG/usr \
prefix=/usr \
- shoutcast=1 \
- faad=1 \
install
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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 $PKG/usr/doc