diff options
author | root <root@rshg054.dnsready.net> | 2011-10-25 23:14:56 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-10-25 23:14:56 +0000 |
commit | d03e905f54857600b3c36af9b221c34ccb11074f (patch) | |
tree | 6456a06bc5bed5a6083f02bb468392dc6ba6337e /community-testing/musescore | |
parent | 0d7bab226067a44a9f1b978924e8201a3fa60764 (diff) |
Tue Oct 25 23:14:56 UTC 2011
Diffstat (limited to 'community-testing/musescore')
-rw-r--r-- | community-testing/musescore/PKGBUILD | 38 | ||||
-rw-r--r-- | community-testing/musescore/musescore.install | 11 | ||||
-rw-r--r-- | community-testing/musescore/paths.patch | 22 |
3 files changed, 71 insertions, 0 deletions
diff --git a/community-testing/musescore/PKGBUILD b/community-testing/musescore/PKGBUILD new file mode 100644 index 000000000..642ba03e0 --- /dev/null +++ b/community-testing/musescore/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 57239 2011-10-24 20:33:27Z andrea $ +# Maintainer: Stefan Husmann <stefan-husmann@t-online.de +# Contributor: Cristian Maureira <saint [at] archlinux.cl> +# Contributor: Dr.Egg <rwhite @ archlinux . us> + +pkgname=musescore +pkgver=1.1 +pkgrel=3 +pkgdesc="A music score editor written in Qt" +arch=('i686' 'x86_64') +url="http://www.musescore.org/en/" +license=('GPL') +depends=('qt' 'qtwebkit' 'libsndfile' 'qtscriptgenerator') +makedepends=('cmake' 'doxygen') +optdepends=('portaudio' 'jack') +install=musescore.install +source=("http://downloads.sourceforge.net/mscore/mscore-${pkgver}.tar.bz2" + 'paths.patch') +md5sums=('68b43af92093a16f7f074c0eb560a867' + '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 + sed -i 's+BUILD_SCRIPTGEN TRUE+BUILD_SCRIPTGEN FALSE+' \ + "$srcdir"/mscore-$pkgver/mscore/CMakeLists.txt + sed -i 's+static_cast<const+static_cast<+' \ + $srcdir/mscore-$pkgver/mscore/mscore/exportxml.cpp + make PREFIX=/usr release +} +package() { + cd $srcdir/mscore-${pkgver} + make DESTDIR="$pkgdir" install +} diff --git a/community-testing/musescore/musescore.install b/community-testing/musescore/musescore.install new file mode 100644 index 000000000..d6abb5470 --- /dev/null +++ b/community-testing/musescore/musescore.install @@ -0,0 +1,11 @@ +post_install() { + update-desktop-database -q +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} diff --git a/community-testing/musescore/paths.patch b/community-testing/musescore/paths.patch new file mode 100644 index 000000000..98bf4b3d5 --- /dev/null +++ b/community-testing/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(); |