Skip to content

Commit

Permalink
Adjust the previous change, fix all Lintian warnings over the Debian …
Browse files Browse the repository at this point in the history
…PPA package
  • Loading branch information
marin-m committed Sep 7, 2022
1 parent c43dc06 commit 88c2928
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 16 deletions.
4 changes: 2 additions & 2 deletions packaging/ppa/build_binary_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ trap cleanup_dirs INT TERM

rm -rf ../../target/ ../../vendor/ ../../.flatpak-builder ../flatpak/.flatpak-builder ../../repo

cp -ra ../../ "${temp_dir}/songrec-0.3.2+2"
cp -ra ../../ "${temp_dir}/songrec-0.3.2+4"

cd "${temp_dir}/songrec-0.3.2+2"
cd "${temp_dir}/songrec-0.3.2+4"

mkdir -p .cargo
cargo vendor --locked vendor | sed 's/^directory = ".*"/directory = "vendor"/g' > .cargo/config
Expand Down
12 changes: 12 additions & 0 deletions packaging/ppa/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
songrec (0.3.2+4) bionic; urgency=low

* Additionally build the package for the any architecture supported by recent Ubuntu releases (try to build for all supported architectures on Launchpad PPA).

-- Marin <[email protected]> Wed, 7 Sep 2022 15:15:00 +0200

songrec (0.3.2+3) bionic; urgency=low

* Additionally build the package for the any architecture supported by recent Ubuntu releases.

-- Marin <[email protected]> Wed, 7 Sep 2022 13:18:00 +0200

songrec (0.3.2+2) bionic; urgency=low

* Additionally build the package for the AMD64/AArch64 architecture.
Expand Down
4 changes: 2 additions & 2 deletions packaging/ppa/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ Vcs-Git: https://github.com/marin-m/songrec.git
Vcs-Browser: https://github.com/marin-m/SongRec

Package: songrec
Architecture: amd64 arm64
Architecture: any
Depends: libasound2,
libssl1.1 | libssl3,
libc6,
ffmpeg,
${misc:Depends},
libgtk-3-0
Recommends: pulseaudio-utils
Description: An unofficial Shazam client for Linux, written in Rust
Expand Down
6 changes: 0 additions & 6 deletions packaging/ppa/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,3 @@ override_dh_auto_install:
mkdir -p $(CURDIR)/debian/songrec/usr/bin
cp -ra $(CURDIR)/target/release/songrec $(CURDIR)/debian/songrec/usr/bin/


# dh_make generated override targets
# This is example for Cmake (See https://bugs.debian.org/641051 )
#override_dh_auto_configure:
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)

10 changes: 5 additions & 5 deletions packaging/ppa/upload_source_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ function cleanup_dirs {

trap cleanup_dirs INT TERM

for version in bionic focal impish jammy kinetic; do
for version in bionic focal jammy kinetic; do

rm -rf ../../target/ ../../vendor/ ../../.flatpak-builder ../flatpak/.flatpak-builder ../../repo ../../.cargo

cp -ra ../../ "${temp_dir}/songrec-0.3.2+2${version}"
cp -ra ../../ "${temp_dir}/songrec-0.3.2+4${version}"

cd "${temp_dir}/songrec-0.3.2+2${version}"
cd "${temp_dir}/songrec-0.3.2+4${version}"

mkdir -p .cargo
cargo vendor --locked vendor | sed 's/^directory = ".*"/directory = "vendor"/g' > .cargo/config
Expand All @@ -49,11 +49,11 @@ for version in bionic focal impish jammy kinetic; do

# Push to Launchpad

dput ppa:marin-m/songrec "../../songrec_0.3.2+2${version}_source.changes"
dput ppa:marin-m/songrec "../../songrec_0.3.2+4${version}_source.changes"

cd "${ORIG_DIR}"

rm -rf "${temp_dir}/songrec-0.3.2+2${version}"
rm -rf "${temp_dir}/songrec-0.3.2+4${version}"

done

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>com.github.marinm.songrec</id>
<metadata_license>CC0</metadata_license>
<metadata_license>GPL-3.0+</metadata_license>
<project_license>GPL-3.0+</project_license>
<name>SongRec</name>
<summary>An open-source, unofficial Shazam client for Linux, written in Rust.</summary>
Expand Down

0 comments on commit 88c2928

Please sign in to comment.