Package Details: swayosd-git 0.1.0.r0.gdbb8b72-1

Git Clone URL: https://aur.archlinux.org/swayosd-git.git (read-only, click to copy)
Package Base: swayosd-git
Description: A GTK based on screen display for keyboard shortcuts like caps-lock and volume
Upstream URL: https://github.com/ErikReider/SwayOSD
Licenses: GPL3
Conflicts: swayosd
Provides: swayosd
Submitter: jgmdev
Maintainer: jgmdev
Last Packager: jgmdev
Votes: 7
Popularity: 1.42
First Submitted: 2023-01-19 19:23 (UTC)
Last Updated: 2024-10-04 04:33 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

jgmdev commented on 2023-07-20 01:28 (UTC)

@res0nanz thanks for the patch, applied it and seems to be building and packaging just fine, though haven't tested...

res0nanz commented on 2023-07-14 11:37 (UTC)

The backend is missing. Can we adopt the build instructions from the repo?

diff --git a/PKGBUILD b/PKGBUILD.new
index 7b8324d..bc5b4e6 100644
--- a/PKGBUILD
+++ b/PKGBUILD.new
@@ -11,7 +11,7 @@ arch=('x86_64' 'aarch64' 'i686')
 url="https://github.com/ErikReider/SwayOSD"
 license=('GPL3')
 depends=('gtk3' 'gtk-layer-shell' 'pulseaudio')
-makedepends=('git' 'cargo')
+makedepends=('git' 'cargo' 'meson' 'ninja')
 provides=("${_pkgname}")
 conflicts=("${_pkgname}")
 source=("git+${url}.git")
@@ -29,13 +29,11 @@ prepare() {

 build() {
        cd "${_reponame}"
-       export RUSTUP_TOOLCHAIN=nightly
-       export CARGO_TARGET_DIR=target
-       cargo build --frozen --release --all-features
+       arch-meson --buildtype=release build
+       ninja -C build
 }

 package() {
        cd "${_reponame}"
-       install -Dm 755 "target/release/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
-       install -Dm 644 README.md "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
+       meson install -C build --destdir "$pkgdir"
 }

Antiz commented on 2023-06-30 06:06 (UTC)

I don't personally use that package and I don't have much time nor interest to (co-)maintain it anymore so I'm stepping down as a co-maintainer.
Good luck for the future :)

Antiz commented on 2023-06-30 06:00 (UTC)

@BryanLiang For what it's worth, I was able to build this package in a clean chroot just fine. You could try that on your side.
See https://wiki.archlinux.org/title/DeveloperWiki:Building_in_a_clean_chroot#Convenience_way

BryanLiang commented on 2023-06-30 01:38 (UTC)

Build failed with error logs

error[E0635]: unknown feature `proc_macro_span_shrink`
  --> /home/bryan/.local/share/cargo/registry/src/mirrors.ustc.edu.cn-4affec411d11e50f/proc-macro2-1.0.56/src/lib.rs:92:30
   |
92 |     feature(proc_macro_span, proc_macro_span_shrink)
   |                              ^^^^^^^^^^^^^^^^^^^^^^

   Compiling futures-channel v0.3.28
   Compiling pin-utils v0.1.0
   Compiling memchr v2.5.0
   Compiling pin-project-lite v0.2.9
For more information about this error, try `rustc --explain E0635`.
error: could not compile `proc-macro2` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...

Antiz commented on 2023-05-30 16:14 (UTC) (edited on 2023-05-30 16:14 (UTC) by Antiz)

@Teddy-Kun, Thanks for raising this, it is now fixed. I switched the toolchain to nightly in this commit.

Teddy-Kun commented on 2023-05-07 18:47 (UTC)

Build fails with "error: failed to download atk v0.17.1". To fix this change "export RUSTUP_TOOLCHAIN=stable" to "export RUSTUP_TOOLCHAIN=nightly".

Antiz commented on 2023-04-09 08:45 (UTC)

@polycrylate Works on my end.

According to the error message, you can eventually try to remove the --frozen option from the build section in the PKGBUILD on your side.

polycrylate commented on 2023-04-09 03:32 (UTC)

Hey, I get an error when installing:

error: failed to download `anyhow v1.0.70`

Caused by:
  attempting to make an HTTP request, but --frozen was specified
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: swayosd-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
swayosd-git - exit status 4

Antiz commented on 2023-01-25 07:08 (UTC)

@jgmdev Alright! Thanks for pushing the improvements and adding me as a co-maintainer :)