Musescore deb package

From MMS Wiki
Revision as of 15:07, 4 May 2020 by Molika (talk | contribs) (Created page with "How To Create MuseScore Debian Package Requirement Qt (>=5.8) 1. Clone from the Musescore repository (https://github.com/andrT/MuseScore.git) and checkout the newest version...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

How To Create MuseScore Debian Package

Requirement Qt (>=5.8)

1. Clone from the Musescore repository (https://github.com/andrT/MuseScore.git) and checkout the newest version (e.g. 3.4.2), then build the project.

$ cd MuseScore && make clean && make

2. Create a directory to make the package in.

$ mkdir musescore_3.4.2

3. Set the installation path to the packaging directory. Provide the full path to DESTDIR. Then run make install.

$ export DESTDIR="$(pwd)/musescore_3.4.2" && make install

This step will create binary files in directories inside the packaging directory. The packaging directory represents the root directory of the file system. The subsequent directories are the path where the program would be installed to on a system.

4. Create a metadata file

$ mkdir musescore_3.4.2/DEBIAN
$ vi musescore_3.4.2/DEBIAN/control

Copy the content of the control file:

Package: musescore
Version: 3.4.2
Section: base
Priority: optional
Architecture: amd64
Maintainer: Andres Traumann <atraumann@matchmysound.com>
Description: MuseScore
 MuseScore modified by MatchMySound

5. Finally, make the package:

$ dpkg-deb --build musescore_3.4.2

A .deb file will be generated.


To install the package

$ dpkg -i musescore_3.4.2.deb