Package Details: shortwave 1:3.2.0-1

Git Clone URL: https://aur.archlinux.org/shortwave.git (read-only, click to copy)
Package Base: shortwave
Description: Find and listen to internet radio stations
Upstream URL: https://gitlab.gnome.org/World/Shortwave
Licenses: GPL3
Submitter: ValHue
Maintainer: igor-dyatlov
Last Packager: igor-dyatlov
Votes: 58
Popularity: 0.36
First Submitted: 2019-03-16 10:34 (UTC)
Last Updated: 2023-02-08 16:20 (UTC)

Pinned Comments

Latest Comments

« First ‹ Previous 1 .. 5 6 7 8 9 10 11 12 13 Next › Last »

jonathon commented on 2020-08-30 16:40 (UTC)

If you want to patch within the PKGBUILD then:

diff --git a/PKGBUILD b/PKGBUILD
index 471d1bf..deb563c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,8 +14,15 @@ license=('GPL3')
 depends=('gst-plugins-bad' 'libhandy' 'libsoup' 'gtk3')
 makedepends=('cargo' 'git' 'gobject-introspection' 'gst-plugins-base-libs' 'libdazzle' 'meson' 'rust')
 options=('!emptydirs')
-source=("${_pkgname}-${pkgver}.tar.gz::${url}/-/archive/${pkgver}/${_pkgname}-${pkgver}.tar.gz")
-sha256sums=('b391b4d10658e9ba180442ca2d769173a278f19beb498c7251a6b4a62b7c678b')
+source=("${_pkgname}-${pkgver}.tar.gz::${url}/-/archive/${pkgver}/${_pkgname}-${pkgver}.tar.gz"
+        handy.patch)
+sha256sums=('b391b4d10658e9ba180442ca2d769173a278f19beb498c7251a6b4a62b7c678b'
+            '1c51917028a5f5b6d201cefc9f7179fbe28be1309f3aa6cd14bd5654cd55ad3d')
+
+prepare() {
+    cd "${_pkgname}-${pkgver}"
+    patch -Np1 -i ../handy.patch
+}

 build() {
     cd "${_pkgname}-${pkgver}"
diff --git a/handy.patch b/handy.patch
new file mode 100644
index 0000000..da685cb
--- /dev/null
+++ b/handy.patch
@@ -0,0 +1,26 @@
+diff --git a/Cargo.lock b/Cargo.lock
+index 562ee21..da03a44 100644
+--- a/Cargo.lock
++++ b/Cargo.lock
+@@ -917,7 +917,7 @@ dependencies = [
+ [[package]]
+ name = "libhandy"
+ version = "0.5.0"
+-source = "git+https://gitlab.gnome.org/haecker-felix/libhandy-rs.git?branch=update_cargo_version#62e7abf44d419cf3fe83da64285f2905da4e333e"
++source = "git+https://gitlab.gnome.org/haecker-felix/libhandy-rs.git#62e7abf44d419cf3fe83da64285f2905da4e333e"
+ dependencies = [
+  "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
+  "gdk 0.12.0 (registry+https://github.com/rust-lang/crates.io-index)",
+diff --git a/Cargo.toml b/Cargo.toml
+index d55d84a..b08e12f 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -42,7 +42,7 @@ gtk = { version = "0.8.0", features = ["v3_22"] }
+ gio = { version = "0.8.0", features = ["v2_46"] }
+ gdk-pixbuf = { version = "0.8.0", features = ["v2_36"] }
+ gettext-rs = { version = "0.4.4", features = ["gettext-system"] }
+-libhandy = { git="https://gitlab.gnome.org/haecker-felix/libhandy-rs.git", branch = "update_cargo_version", features = ["v0_0_12"] }
++libhandy = { git="https://gitlab.gnome.org/haecker-felix/libhandy-rs.git", features = ["v0_0_12"] }
+ gtk-macros = "0.2.0"

kouros17 commented on 2020-08-29 13:48 (UTC)

@harmathy Thanks a lot! After the last commit it works! :)

harmathy commented on 2020-08-29 13:25 (UTC)

I couldn't build it with master of libhandy-rs. I opened https://gitlab.gnome.org/World/Shortwave/-/issues/519. From the reply, I made this working version: https://github.com/harmathy/aur-shortwave

petris commented on 2020-08-28 23:08 (UTC)

This appears to build properly by replacing all instances of "update_cargo_version" with "master" in the Cargo.toml and Cargo.lock files of the downloaded shortwave source. The "update_cargo_version" branch of libhandy-rs has disappeared since the release of 1.1.1, but the commit is included in the master branch.

jonathon commented on 2020-08-28 21:18 (UTC)

@kouros17 @u666sa That is an upstream issue, not an issue with this package. You can report here: https://gitlab.gnome.org/World/Shortwave/-/issues

u666sa commented on 2020-08-28 13:46 (UTC)

RELEASE MODE Updating crates.io index Updating git repository https://gitlab.gnome.org/haecker-felix/libhandy-rs.git error: failed to get libhandy as a dependency of package shortwave v0.0.0 (/home/alex/.cache/yay/shortwave/src/Shortwave-1.1.1)

Caused by: failed to load source for dependency libhandy

Caused by: Unable to update https://gitlab.gnome.org/haecker-felix/libhandy-rs.git?branch=update_cargo_version#62e7abf4

Caused by: object not found - no match for id (62e7abf44d419cf3fe83da64285f2905da4e333e); class=Odb (9); code=NotFound (-3) [3/4] Generating de.haeckerfelix.Shortwave.metainfo.xml_data_merge with a custom command FAILED: src/shortwave /home/alex/.cache/yay/shortwave/src/Shortwave-1.1.1/build-aux/cargo.sh /home/alex/.cache/yay/shortwave/src/Shortwave-1.1.1/builddir /home/alex/.cache/yay/shortwave/src/Shortwave-1.1.1 src/shortwave /usr/share/locale default ninja: build stopped: subcommand failed. ==> ОШИБКА: Произошел сбой в build(). Прерывание... ошибка сборки: %!s(func() string=0x56112ce94bb0)

kouros17 commented on 2020-08-28 12:59 (UTC) (edited on 2020-08-28 13:00 (UTC) by kouros17)

I can't build it because:

"error: failed to get libhandy as a dependency of package shortwave v0.0.0 (/var/tmp/pamac-build-giorgos/shortwave/src/Shortwave-1.1.1)

Caused by: failed to load source for dependency libhandy

Caused by: Unable to update https://gitlab.gnome.org/haecker-felix/libhandy-rs.git?branch=update_cargo_version#62e7abf4

Caused by: object not found - no match for id (62e7abf44d419cf3fe83da64285f2905da4e333e); class=Odb (9); code=NotFound (-3) [3/4] Generating de.haeckerfelix.Shortwave.desktop_data_merge with a custom command FAILED: src/shortwave /var/tmp/pamac-build-giorgos/shortwave/src/Shortwave-1.1.1/build-aux/cargo.sh /var/tmp/pamac-build-giorgos/shortwave/src/Shortwave-1.1.1/builddir /var/tmp/pamac-build-giorgos/shortwave/src/Shortwave-1.1.1 src/shortwave /usr/share/locale default ninja: build stopped: subcommand failed"

ValHue commented on 2020-08-28 10:44 (UTC)

@Xyne,

Done, I have removed the "conflicts" array.

As for the error, I do not imagine what can cause it, I have looked at the bugs reported on the developer's website and I do not find anything.

For what it's worth, I use it with pulseaudio without any problems.

Regards..