From 64040d5831f637706dd9d11900b119b5405e71e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Taneli=20Lepp=C3=A4?= Date: Tue, 18 Jun 2024 17:04:50 +0200 Subject: [PATCH] Add debian packaging --- README.md | 6 ++++++ debian/changelog | 5 +++++ debian/control | 41 +++++++++++++++++++++++++++++++++++++++++ debian/copyright | 16 ++++++++++++++++ debian/rules | 21 +++++++++++++++++++++ linamp.desktop | 10 ++++++++++ 6 files changed, 99 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 linamp.desktop diff --git a/README.md b/README.md index 6fdf63d..3c685b7 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,12 @@ pip install -r python/requirements.txt **Tip:** If you want to see the app in a window instead of full screen, comment out the following line in `main.cpp`: `//window.setWindowState(Qt::WindowFullScreen);` +### Building a Debian package + +Install [sbuild](https://wiki.debian.org/sbuild) using option 3 (change `unstable` to your distro, eg `bookworm` and create the `.sbuildrc` manually instead of `tee`). + +Then simply run `sbuild --no-run-piuparts --lintian-opt="--suppress-tags=bad-distribution-in-changes-file"` in the cloned repository directory. The `.deb` packages will be in your home directory afterwards if everything went well. + ### Known issues - File picker and playlist view doesn't correctly work with mouse input, clicks are not detected (touch works fine). There was a bug with touch input which got fixed by disabling certain mouse events, but this had the side effect that if you don't have a touch screen, you cannot quite use it with a mouse. WORKAROUND: Whenever you want to click something inside the file browser or playlist, click and hold for about one second, this will trigger the click event correctly. diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..c0d929a --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +linamp (1.1.0) bookworm; urgency=medium + + * Initial release. + + -- Taneli Leppä Tue, 18 Jun 2024 14:00:21 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..a6d0488 --- /dev/null +++ b/debian/control @@ -0,0 +1,41 @@ +Source: linamp +Section: Sound +Priority: optional +Maintainer: Rodrigo Méndez +Rules-Requires-Root: no +Build-Depends: + debhelper-compat (= 13), + qt6-base-dev, + qt6-base-dev-tools, + qt6-multimedia-dev, + qtcreator, + cmake, + libtag1-dev, + libasound2-dev, + libpulse-dev, + libpipewire-0.3-dev, + libdbus-1-dev, + libiso9660-dev, + libcdio-dev, + libcdio-utils, + swig, + python3-dev +Standards-Version: 4.6.2 +Homepage: https://github.com/Rodmg/linamp +Vcs-Browser: https://github.com/Rodmg/linamp +Vcs-Git: https://github.com/Rodmg/linamp.git + +Package: linamp +Architecture: any +Depends: + ${shlibs:Depends}, + ${misc:Depends}, + vlc, + python3-full, + python3-libdiscid, + python3-musicbrainzngs, + python3-cdio, + python3-vlc +Description: Music player app for Linamp - Your favorite music player of the 90s, but in real life. + Music player app for Linamp - Your favorite music player of the 90s, but in real life. Built + with QT6. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..d73243a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,16 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: +Upstream-Name: linamp +Upstream-Contact: Rodrigo Méndez + +Files: + * +Copyright: + 2024 Rodrigo Méndez +License: See LICENSE in parent directory + +Files: + debian/* +Copyright: + 2024 Taneli Leppä +License: See LICENSE in parent directory diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..69f5faa --- /dev/null +++ b/debian/rules @@ -0,0 +1,21 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_build: + qmake6 -makefile + make + +override_dh_auto_configure: + echo "Skipped" + +override_dh_auto_install: + mkdir -p debian/linamp/usr/bin + cp player debian/linamp/usr/bin/linamp-player + + mkdir -p debian/linamp/usr/share/applications/ + cp linamp.desktop debian/linamp/usr/share/applications/ + + mkdir -p debian/linamp/usr/share/icons/hicolor/72x72/apps/ + cp assets/logoButton.png debian/linamp/usr/share/icons/hicolor/72x72/apps/linamp-player.png diff --git a/linamp.desktop b/linamp.desktop new file mode 100644 index 0000000..0f16858 --- /dev/null +++ b/linamp.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Name=Linamp +Comment=Music player app for Linamp - Your favorite music player of the 90s, but in real life. +Exec=/usr/bin/linamp-player %U +Icon=/usr/share/icons/hicolor/72x72/apps/linamp-player.png +Terminal=false +#StartupWMClass=name of application +Type=Application +Categories=Audio