summaryrefslogtreecommitdiff
path: root/multimedia/mscore/mscore.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-04-13 12:40:31 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-04-13 12:40:31 +0700
commit75e57175eb316209d83f798262a16f758b46776f (patch)
tree2eb2305a1e5284b27a333cc5f6cb9b44d23bb6f0 /multimedia/mscore/mscore.SlackBuild
parent70a2d073ba5b758889615c2ebfe4dde8eb32ac07 (diff)
downloadslackbuilds-75e57175eb316209d83f798262a16f758b46776f.tar.gz
multimedia/mscore: Updated for version 2.0.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia/mscore/mscore.SlackBuild')
-rw-r--r--multimedia/mscore/mscore.SlackBuild29
1 files changed, 11 insertions, 18 deletions
diff --git a/multimedia/mscore/mscore.SlackBuild b/multimedia/mscore/mscore.SlackBuild
index d9aa52457f..2a8459fae4 100644
--- a/multimedia/mscore/mscore.SlackBuild
+++ b/multimedia/mscore/mscore.SlackBuild
@@ -3,7 +3,8 @@
# Maintained by Klaatu at memeber.fsf dot org
PRGNAM=mscore
-VERSION=${VERSION:-1.3}
+SRCNAM=MuseScore
+VERSION=${VERSION:-2.0.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -25,9 +26,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM-$VERSION
+unzip $CWD/$SRCNAM-$VERSION.zip
+cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -51,29 +52,21 @@ else
LIBDIRSUFFIX=""
fi
-# touchup the .desktop file
-sed -i \
- -e '/^Categories/s|=.*|=Application;Qt;AudioVideo;|' \
- -e 's|true|false|' ./$PRGNAM/packaging/mscore.desktop
-
make release PREFIX=/usr CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" LDFLAGS="-pthread"
make install PREFIX=/usr DESTDIR=$PKG
-# include the icon file
-install -D -m 0644 ./$PRGNAM/packaging/mscore.desktop \
- $PKG/usr/share/applications/mscore.desktop
-install -D -m 0644 ./$PRGNAM/mscore/data/mscore.xpm \
- $PKG/usr/share/pixmaps/mscore.xpm
-
mkdir -p $PKG/usr/man/man1
-gzip -9c ./$PRGNAM/packaging/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
+mv $PKG/usr/share/man/* $PKG/usr/man/man1
+rm -rf $PKG/usr/share/man
+
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
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 -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a ./$PRGNAM/{ChangeLog,COPYING,NEWS,README,README.scripts} \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a LICENSE.* README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install