diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/musescore |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/musescore')
-rw-r--r-- | community/musescore/PKGBUILD | 37 | ||||
-rw-r--r-- | community/musescore/QtEvent.patch | 19 | ||||
-rw-r--r-- | community/musescore/paths.patch | 22 |
3 files changed, 78 insertions, 0 deletions
diff --git a/community/musescore/PKGBUILD b/community/musescore/PKGBUILD new file mode 100644 index 000000000..294105fbc --- /dev/null +++ b/community/musescore/PKGBUILD @@ -0,0 +1,37 @@ +# Contributor: Cristian Maureira <saint [at] archlinux.cl> +# Previous Contributor: Dr.Egg <rwhite @ archlinux . us> +# Maintainer: Stefan Husmann <stefan-husmann@t-online.de + +pkgname=musescore +pkgver=1.0 +pkgrel=1 +pkgdesc="A music score editor written in Qt4" +arch=('i686' 'x86_64') +url="http://www.musescore.org/en/" +license=('GPL') +depends=('qt>=4.5.0' 'openssl' 'libsndfile' 'qtscriptgenerator') +makedepends=('cmake' 'doxygen') +optdepends=('portaudio' 'jack-audio-connection-kit') +conflicts=('musescore-svn' 'mscore') +source=(http://downloads.sourceforge.net/project/mscore/mscore/MuseScore-${pkgver}/MuseScore-${pkgver}.tar.bz2 'paths.patch') +md5sums=('475c7c5abdaa80318b207884475de9ac' + 'e5011154d217f633f21b4bb70e589510') + +build() { + cd $srcdir/mscore-${pkgver} + export QT_PLUGINS_DIR=/usr/lib/qt/plugins + [ -d build ] && make clean + patch -p1 < $srcdir/paths.patch + sed -i 's+${Mscore_INSTALL_NAME}man+doc/mscore+' \ + "$srcdir"/mscore-$pkgver/mscore/manual/CMakeLists.txt + make PREFIX=/usr release +} +package() { + cd $srcdir/mscore-${pkgver} + make DESTDIR="$pkgdir" install + # avoid file conflict with "qtscriptgenerator" + for _i in gui network core uitools xml + do + rm $pkgdir/usr/lib/qt/plugins/script/libqtscript_${_i}.so + done +} diff --git a/community/musescore/QtEvent.patch b/community/musescore/QtEvent.patch new file mode 100644 index 000000000..d8aa1562d --- /dev/null +++ b/community/musescore/QtEvent.patch @@ -0,0 +1,19 @@ +diff -Naur mscore-0.9.6.3.orig/mscore/scriptgen/qtbindings/core/qtscript_QEvent.cpp mscore-0.9.6.3.new/mscore/scriptgen/qtbindings/core/qtscript_QEvent.cpp +--- mscore-0.9.6.3.orig/mscore/scriptgen/qtbindings/core/qtscript_QEvent.cpp 2010-10-12 22:01:35.000000000 +0200 ++++ mscore-0.9.6.3.new/mscore/scriptgen/qtbindings/core/qtscript_QEvent.cpp 2010-10-12 22:03:11.000000000 +0200 +@@ -214,7 +214,6 @@ + , QEvent::UngrabMouse + , QEvent::GrabKeyboard + , QEvent::UngrabKeyboard +- , QEvent::CocoaRequestModal + , QEvent::User + , QEvent::MaxUser + }; +@@ -362,7 +361,6 @@ + , "UngrabMouse" + , "GrabKeyboard" + , "UngrabKeyboard" +- , "CocoaRequestModal" + , "User" + , "MaxUser" + }; diff --git a/community/musescore/paths.patch b/community/musescore/paths.patch new file mode 100644 index 000000000..98bf4b3d5 --- /dev/null +++ b/community/musescore/paths.patch @@ -0,0 +1,22 @@ +diff -Naur musescore-svn.orig//mscore/mscore/mscore.cpp musescore-svn.new//mscore/mscore/mscore.cpp +--- musescore-svn.orig//mscore/mscore/mscore.cpp 2010-06-16 23:10:27.000000000 +0200 ++++ musescore-svn.new//mscore/mscore/mscore.cpp 2010-06-16 23:13:59.000000000 +0200 +@@ -897,15 +897,15 @@ + if (debugMode) + printf("open handbook for language <%s>\n", qPrintable(lang)); + +- QFileInfo mscoreHelp(mscoreGlobalShare + QString("man/MuseScore-") + lang + QString(".pdf")); ++ QFileInfo mscoreHelp(mscoreGlobalShare + QString("../doc/musescore/MuseScore-") + lang + QString(".pdf")); + if (!mscoreHelp.isReadable()) { + if (debugMode) { + printf("cannot open doc <%s>\n", qPrintable(mscoreHelp.filePath())); + } + lang = lang.left(2); +- mscoreHelp.setFile(mscoreGlobalShare + QString("man/MuseScore-") + lang + QString(".pdf")); ++ mscoreHelp.setFile(mscoreGlobalShare + QString("../doc/mscore/MuseScore-") + lang + QString(".pdf")); + if(!mscoreHelp.isReadable()){ +- mscoreHelp.setFile(mscoreGlobalShare + QString("man/MuseScore-en.pdf")); ++ mscoreHelp.setFile(mscoreGlobalShare + QString("../doc/mscore/MuseScore-en.pdf")); + if (!mscoreHelp.isReadable()) { + QString info(tr("MuseScore handbook not found at: \n")); + info += mscoreHelp.filePath(); |