aboutsummaryrefslogtreecommitdiff
path: root/multimedia/musique/musique.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/musique/musique.SlackBuild')
-rw-r--r--multimedia/musique/musique.SlackBuild27
1 files changed, 11 insertions, 16 deletions
diff --git a/multimedia/musique/musique.SlackBuild b/multimedia/musique/musique.SlackBuild
index 085ea45bd065..4376bf0bc5f6 100644
--- a/multimedia/musique/musique.SlackBuild
+++ b/multimedia/musique/musique.SlackBuild
@@ -5,7 +5,7 @@
# Formerly maintained by Ryan P.C. McQuen <email removed>
# Now maintained by B. Watson <yalhcru@gmail.com>
-# Copyright 2010, 2012 Binh Nguyen <binhvng@gmail.com>
+# Copyright 2010, 2012 Binh Nguyen <email removed>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,6 +25,7 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20210910 bkw: update for v1.10.1 (-current and qt5).
# 20170326 bkw:
# - take over maintenance.
# - i486=>i586.
@@ -36,8 +37,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=musique
-VERSION=${VERSION:-1.4}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.10.1}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -49,9 +50,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -80,19 +78,16 @@ set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$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 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
# I don't see how to force our flags via qmake, hence the sed stuff.
-qmake PREFIX=/usr
-sed -i "/C.*FLAGS/s,-O2,$SLKCFLAGS," Makefile
+qmake-qt5 PREFIX=/usr
+sed -i "/C.*FLAGS/s,-O3,$SLKCFLAGS," Makefile
make
make INSTALL_ROOT=$PKG install
strip $PKG/usr/bin/$PRGNAM