#Maintainer: Davidson Paulo pkgname=musescore pkgver=0.9.4 pkgrel=1 zenver=62 arch=i686 cpu=i686 source=("http://dl.sourceforge.net/sourceforge/mscore/mscore-$pkgver.tar.bz2") url=http://www.musescore.org/ sourcetemplate=http://zur.zenwalk.org/files/$pkgname CFLAGS="-O2 -march=$arch -mtune=$cpu" CXXFLAGS="$CFLAGS" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "musescore (WYSIWYG music notation program)" "MuseScore is a free cross platform WYSIWYG music notation program, " "licenced under GNU GPL. Some highlights:" " " " * WYSIWYG, notes are entered on a \"virtual note sheet\"" " * Unlimited number of staves" " * Up to four voices per staff" " * Easy and fast note entry with mouse, keyboard or MIDI" " * Integrated sequencer and FluidSynth software synthesizer" " * More, much more!" ) build() { checkPkg() { if [ -z "$(ls /var/log/packages/${1}-[0-9]*)" ] ; then echo "[WARNING] '$1' is missing. Trying to automatically install it..." echo "netpkg $1-$2" netpkg "$1"-"$2" if [ $? -ne 0 ] ; then echo "[ERROR] You need to install '$1'." return 1 fi fi } checkDeps() { checkPkg "cmake" "2" || return 1 checkPkg "qt4-base" "4" || return 1 checkPkg "imagemagick" "6" || return 1 if ! which qmake > /dev/null 2>&1 ; then PATH="$PATH:/usr/lib/qt4/bin" if ! which qmake > /dev/null 2>&1 ; then echo "[ERROR] Can't find 'qmake' on PATH" return 1 fi fi } checkDeps || return 1 cd $startdir/src/mscore-$pkgver sed -i 's|/usr/local|/usr|' Makefile make || return 1 make DESTDIR=$startdir/pkg install install -v -d -m0755 $startdir/pkg/usr/share/icons/hicolor/48x48 install -v -d -m0755 $startdir/pkg/usr/share/icons/hicolor/48x48/apps convert -resize 48x48 $startdir/pkg/usr/share/icons/hicolor/{64x64,48x48}/apps/mscore.png install -v -d -m0755 $startdir/pkg/etc install -v -d -m0755 $startdir/pkg/etc/udev install -v -d -m0755 $startdir/pkg/etc/udev/rules.d cat << EOF > $startdir/pkg/etc/udev/rules.d/99-musescore.rules # snd-seq ACTION=="add", RUN+="/sbin/modprobe snd-seq" EOF chmod 0644 $startdir/pkg/etc/udev/rules.d/99-musescore.rules } doinst() { sbin/service restart udev } docs=("COPYING" "Changelog" "NEWS" "README")