Skip to content

Commit

Permalink
Merge pull request #5 from rosmo/deb-package
Browse files Browse the repository at this point in the history
Add Debian packaging
  • Loading branch information
Rodmg authored Jul 7, 2024
2 parents f83486e + 64040d5 commit 5e8cb0e
Show file tree
Hide file tree
Showing 6 changed files with 99 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
linamp (1.1.0) bookworm; urgency=medium

* Initial release.

-- Taneli Leppä <[email protected]> Tue, 18 Jun 2024 14:00:21 +0200
41 changes: 41 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
Source: linamp
Section: Sound
Priority: optional
Maintainer: Rodrigo Méndez <[email protected]>
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.
16 changes: 16 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Source: <https://github.com/Rodmg/linamp>
Upstream-Name: linamp
Upstream-Contact: Rodrigo Méndez <[email protected]>

Files:
*
Copyright:
2024 Rodrigo Méndez <[email protected]>
License: See LICENSE in parent directory

Files:
debian/*
Copyright:
2024 Taneli Leppä <[email protected]>
License: See LICENSE in parent directory
21 changes: 21 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions linamp.desktop
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5e8cb0e

Please sign in to comment.