wok view mscore/receipt @ rev 24417
created recipes for perl-cairo-gobject, perl-glib-object-introspection and perl-gtk3
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 11 09:16:47 2022 +0100 (2022-02-11) |
parents | 6e8b1bcb30e2 |
children | ad9008f821da |
line source
1 # SliTaz package receipt.
3 PACKAGE="mscore"
4 VERSION="1.2"
5 CATEGORY="multimedia"
6 SHORT_DESC="a WYSIWYG music notation program"
7 MAINTAINER="allan316@gmail.com"
8 LICENSE="GPL2"
9 SOURCE="MuseScore"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="https://musescore.org"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="libQtCore libQtGui libQtDesigner libQtScriptTools libQtNetwork \
15 libQtSvg libQtXml portaudio libsndfile alsa-lib libssl libcrypto"
16 BUILD_DEPENDS="cmake doxygen qmake Qt4-dev portaudio-dev alsa-lib-dev \
17 libsndfile-dev freetype-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/mscore/files/mscore/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
24 sed '/scope="row/!d;s|.*Score-||;s|/.*||;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lpthread"
31 export QT_PLUGINS_DIR=/usr/lib/qt/plugins
32 sed -i "s/usr\/local/usr/" Makefile
33 [ -d build ] && make clean
34 make -j1 PREFIX=/usr release && make -j1 install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib $fs/usr
43 cp -a $install/usr/share $fs/usr
44 }