diff options
Diffstat (limited to 'multimedia/MuseScore')
-rw-r--r-- | multimedia/MuseScore/MuseScore.SlackBuild | 108 | ||||
-rw-r--r-- | multimedia/MuseScore/MuseScore.desktop | 15 | ||||
-rw-r--r-- | multimedia/MuseScore/MuseScore.info | 18 | ||||
-rw-r--r-- | multimedia/MuseScore/README | 26 | ||||
-rw-r--r-- | multimedia/MuseScore/slack-desc | 4 |
5 files changed, 110 insertions, 61 deletions
diff --git a/multimedia/MuseScore/MuseScore.SlackBuild b/multimedia/MuseScore/MuseScore.SlackBuild index 2db14943c6..69254eafd5 100644 --- a/multimedia/MuseScore/MuseScore.SlackBuild +++ b/multimedia/MuseScore/MuseScore.SlackBuild @@ -1,19 +1,33 @@ #!/bin/bash + # Slackware build script for MuseScore -# Copyright 2022 Klaatu <klaatu@member.fsf.org> | Lawrence NZ +# Copyright 2024 Antonio Leal, Porto Salvo, Oeiras, Portugal +# Copyright 2022-2023 Klaatu <klaatu@member.fsf.org> | Lawrence NZ # Thanks to Tim Dickson - -# GNU All-Permissive License -# Copying and distribution of this file, with or without modification, -# are permitted in any medium without royalty provided the copyright -# notice and this notice are preserved. This file is offered as-is, -# without any warranty. +# 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. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=MuseScore -VERSION=${VERSION:-3.6.2} +VERSION=${VERSION:-4.3.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -26,9 +40,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 @@ -53,46 +64,32 @@ else fi set -e - rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz + +tar xvfz $CWD/$PRGNAM-$VERSION.tar.gz + 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 \ + -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 {} \; - -# Copy over sound files for installation. -cp $CWD/MuseScore_General_License.md share/sound -cp $CWD/MuseScore_General.sf3 share/sound - -# Turn off Qt crash reporter. Option isn't available in Makefile, -# so turn it off in CMakeLists.txt -sed -i '/(BUILD_CRASH_REPORTER/s|ON)|OFF)|' CMakeLists.txt -sed -i 's|share/man|man|' CMakeLists.txt + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ mkdir b cd b -cmake \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_C_FLAGS_RELEASE="$SLKCFLAGS" \ - -DCMAKE_CXX_FLAGS_RELEASE="$SLKCFLAGS" \ - -DCMAKE_MODULE_LINKER_FLAGS_RELEASE="-pthread" \ - -DMUSESCORE_BUILD_CONFIG=release \ - -DDOWNLOAD_SOUNDFONT=OFF \ - -DUSE_SYSTEM_FREETYPE=ON \ - -DBUILD_WEBENGINE=OFF \ - -DBUILD_TELEMETRY_MODULE=OFF \ - -DBUILD_PORTAUDIO=ON \ - -DBUILD_PORTMIDI=ON \ - -DQMAKE=/usr/lib"${LIBDIRSUFFIX}"/qt5/bin/qmake \ - -DQT_QMAKE_EXECUTABLE=/usr/lib"${LIBDIRSUFFIX}"/qt5/bin/qmake \ - .. +cmake .. \ + -DCMAKE_INSTALL_PREFIX=/opt/MuseScore \ + -DCMAKE_C_FLAGS_RELEASE="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS_RELEASE="$SLKCFLAGS" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_MODULE_LINKER_FLAGS_RELEASE="-pthread" \ + -DQMAKE=/usr/lib"${LIBDIRSUFFIX}"/qt5/bin/qmake \ + -DQT_QMAKE_EXECUTABLE=/usr/lib"${LIBDIRSUFFIX}"/qt5/bin/qmake \ + -DMUSESCORE_BUILD_MODE=release make install \ DESTDIR=$PKG \ @@ -100,13 +97,44 @@ make install \ cd .. +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la + 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 +find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true + +mkdir -p $PKG/usr/share/icons +mv $PKG/opt/MuseScore/share/icons/hicolor $PKG/usr/share/icons/ +rm -rf $PKG/opt/MuseScore/share/icons + +mkdir -p $PKG/usr/share/applications +cp $CWD/MuseScore.desktop $PKG/usr/share/applications/ +rm -rf $PKG/opt/MuseScore/share/applications + +mkdir -p $PKG/usr/man/man1 +mv $PKG/opt/MuseScore/share/man/man1/mscore.1.gz $PKG/usr/man/man1/ find $PKG/usr/man -type f -exec gzip -9 {} \; +rm -rf $PKG/opt/MuseScore/share/man + +mv $PKG/opt/MuseScore/share/metainfo $PKG/usr/share/ + +mv $PKG/opt/MuseScore/share/mime $PKG/usr/share/ + +mkdir -p $PKG/opt/MuseScore/share/demos +cp -avxu demos/*.msc? $PKG/opt/MuseScore/share/demos + +mkdir -p $PKG/usr/bin +( cd $PKG/usr/bin ; rm -rf mscore ) +( cd $PKG/usr/bin ; ln -sf ../../opt/MuseScore/bin/mscore mscore ) +( cd $PKG/usr/bin ; rm -rf MuseScore ) +( cd $PKG/usr/bin ; ln -sf ../../opt/MuseScore/bin/mscore MuseScore ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a LICENSE.* README.md $PKG/usr/doc/$PRGNAM-$VERSION +cp doc/* $PKG/usr/doc/$PRGNAM-$VERSION +cp LICENSE.txt $PKG/usr/doc/$PRGNAM-$VERSION +cp README.md $PKG/usr/doc/$PRGNAM-$VERSION +cp CONTRIBUTING.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install diff --git a/multimedia/MuseScore/MuseScore.desktop b/multimedia/MuseScore/MuseScore.desktop new file mode 100644 index 0000000000..d183c1284b --- /dev/null +++ b/multimedia/MuseScore/MuseScore.desktop @@ -0,0 +1,15 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=MuseScore +GenericName=Music notation +Comment=Create, play and print beautiful sheet music +Exec=mscore +Icon=mscore +Terminal=false +StartupNotify=true +NoDisplay=false +MimeType=application/x-musescore;application/x-musescore+xml;x-scheme-handler/musescore;application/vnd.recordare.musicxml;application/vnd.recordare.musicxml+xml;audio/midi;application/x-bww;application/x-biab;application/x-capella;audio/x-gtp;application/x-musedata;application/x-overture;audio/x-ptb;application/x-sf2;application/x-sf3; +Categories=AudioVideo; +Keywords=music;notation;composition;composing;arranging;making;sheet music;music notation software;lead sheet;leadsheet;score;full score;scorewriter;MIDI;musicxml;playback;instrument; + diff --git a/multimedia/MuseScore/MuseScore.info b/multimedia/MuseScore/MuseScore.info index 99ce17e172..56facb4768 100644 --- a/multimedia/MuseScore/MuseScore.info +++ b/multimedia/MuseScore/MuseScore.info @@ -1,14 +1,10 @@ PRGNAM="MuseScore" -VERSION="3.6.2" -HOMEPAGE="http://www.musescore.org/" -DOWNLOAD="https://github.com/musescore/MuseScore/archive/v3.6.2/MuseScore-3.6.2.tar.gz \ -http://ftp.osuosl.org/pub/musescore/soundfont/MuseScore_General/MuseScore_General.sf3 \ -http://ftp.osuosl.org/pub/musescore/soundfont/MuseScore_General/MuseScore_General_License.md" -MD5SUM="682c4a38b8b39d246d196c392ae08ab7 \ - 7b354559c7ef4e859a2bfad8738d477d \ - bc7b4fbe58b37788876b6c36f19577d0" +VERSION="4.3.2" +HOMEPAGE="https://github.com/musescore/MuseScore" +DOWNLOAD="https://github.com/musescore/MuseScore/archive/v4.3.2/MuseScore-4.3.2.tar.gz" +MD5SUM="717516e8f9e16f62b7394550377c8a58" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="jack portaudio portmidi" -MAINTAINER="Klaatu" -EMAIL="klaatu@member.fsf.org" +REQUIRES="" +MAINTAINER="Antonio Leal" +EMAIL="antonioleal@yahoo.com" diff --git a/multimedia/MuseScore/README b/multimedia/MuseScore/README index 449a4c6663..e539fd95d0 100644 --- a/multimedia/MuseScore/README +++ b/multimedia/MuseScore/README @@ -1,10 +1,20 @@ MuseScore is a free cross platform WYSIWYG music notation -program, licenced under GNU GPL. Features: - * WYSIWYG, notes are entered on a "virtual note sheet" - * unlimited number of staves - * up to four voices/staff - * easy and fast note entry with mouse, keyboard or midi - * integrated sequencer and FluidSynth software synthesizer - * import and export of MusicXml and standard midifiles (SMF) - * platform independent code for Linux, Windows, Mac +program, licenced under GNU GPL. +MuseScore has been rebranded to "MuseScore Studio" to avoid +confusion with the site musescore.com that holds the music scores. +MuseScore features: + + - WYSIWYG design, notes are entered on a "virtual notepaper" + - TrueType font(s) for printing & display allows for high quality + scaling to all sizes + - Easy & fast note entry + - Many editing functions + - MusicXML import/export + - MIDI (SMF) import/export + - MuseData import + - MIDI input for note entry + - Integrated sequencer and software synthesizer to play the score + - Print or create pdf files + +In Slackware this package partially installs to /opt/MuseScore diff --git a/multimedia/MuseScore/slack-desc b/multimedia/MuseScore/slack-desc index 26d3afcfd3..653468c529 100644 --- a/multimedia/MuseScore/slack-desc +++ b/multimedia/MuseScore/slack-desc @@ -8,8 +8,8 @@ |-----handy-ruler------------------------------------------------------| MuseScore: MuseScore (WYSIWYG Music Score Typesetter) MuseScore: -MuseScore: MuseScore is a free cross platform WYSIWYG music notation program, -MuseScore: licensed under GNU GPL. +MuseScore: MuseScore aka "MuseScore Studio" is a free cross platform WYSIWYG +MuseScore: music notation program licensed under GNU GPL. MuseScore: MuseScore: Homepage: http://www.musescore.org/ MuseScore: |