SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "mscore"

# SliTaz package receipt.

PACKAGE="mscore"
VERSION="1.2"
CATEGORY="multimedia"
SHORT_DESC="a WYSIWYG music notation program"
MAINTAINER="allan316@gmail.com"
LICENSE="GPL2"
SOURCE="MuseScore"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="https://musescore.org"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="libQtCore libQtGui libQtDesigner libQtScriptTools libQtNetwork \
libQtSvg libQtXml portaudio libsndfile alsa-lib libssl libcrypto"
BUILD_DEPENDS="cmake doxygen qmake Qt4-dev portaudio-dev alsa-lib-dev \
libsndfile-dev freetype-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/mscore/files/mscore/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*Score-||;s|\.[a-z]*/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lpthread"
    export QT_PLUGINS_DIR=/usr/lib/qt/plugins
    sed -i "s/usr\/local/usr/" Makefile
    [ -d build ] && make clean
    make -j1 PREFIX=/usr release && make -j1 install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/lib $fs/usr
    cp -a $install/usr/share $fs/usr
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)