diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2016-01-02 22:28:11 -0600 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-01-17 09:40:16 +0700 |
commit | ea543fbb9c4494e2c5b70b9ba80a8dc8d426c4ed (patch) | |
tree | 50299e0b9dbb5b225bc3bfee3da80729f2b196a7 /audio/mixxx/mixxx.SlackBuild | |
parent | 6b2b4f61868dee21e621cbc68a5e8deafaa44921 (diff) |
audio/mixxx: Updated for version 2.0.0.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/mixxx/mixxx.SlackBuild')
-rw-r--r-- | audio/mixxx/mixxx.SlackBuild | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/audio/mixxx/mixxx.SlackBuild b/audio/mixxx/mixxx.SlackBuild index 73c8c601ebd59..6583332a8ebb4 100644 --- a/audio/mixxx/mixxx.SlackBuild +++ b/audio/mixxx/mixxx.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=mixxx -VERSION=${VERSION:-1.11.0} +VERSION=${VERSION:-2.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -54,14 +54,16 @@ else LIBDIRSUFFIX="" fi +SRCVER=$(echo $VERSION | tr _ - ) + set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION-src.tar.gz -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$SRCVER +tar xvf $CWD/$PRGNAM-$SRCVER-src.tar.gz +cd $PRGNAM-$SRCVER chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -69,26 +71,31 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Fix the desktop file -patch -p0 < $CWD/desktop.diff +# 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 -# it seems libshout isn't detected :( CFLAGS="$SLKCFLAGS" \ QTDIR=/usr/lib$LIBDIRSUFFIX/qt \ scons \ - shoutcast=0 \ + shoutcast=1 \ + faad=1 \ 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 \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +mkdir $PKG/usr/doc +mv $PKG/usr/share/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION +rmdir $PKG/usr/share/doc cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |