Package Details: swhkd-git 1.2.1.r70.g3db287e-1

Git Clone URL: https://aur.archlinux.org/swhkd-git.git (read-only, click to copy)
Package Base: swhkd-git
Description: Display server-independent hotkey daemon inspired by sxhkd
Upstream URL: https://github.com/waycrate/swhkd
Keywords: wayland x11 xorg
Licenses: BSD
Conflicts: swhkd
Provides: swhkd
Submitter: Shinyzenith
Maintainer: eclairevoyant
Last Packager: eclairevoyant
Votes: 9
Popularity: 0.006781
First Submitted: 2022-02-08 17:21 (UTC)
Last Updated: 2024-02-25 01:26 (UTC)

Latest Comments

dreieck commented on 2023-06-21 11:08 (UTC)

Please add provides=("swhkd=${pkgver}"), and add swhkd to the conflicts array.

Thanks for maintaining!

eclairevoyant commented on 2023-02-16 00:12 (UTC)

conflicts should be changed to conflicts=('swhkd'), and this package should provide the same. Also, make should not be part of the makedepends

qubidt commented on 2022-09-28 17:33 (UTC) (edited on 2022-09-28 17:47 (UTC) by qubidt)

might be nice to add the vim-plugin to the package:

diff --git a/PKGBUILD b/PKGBUILD
index 7560665..c1654ed 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,8 +4,8 @@

 _pkgname="swhkd"
 pkgname="${_pkgname}-git"
-pkgver=.552.g1b6cf27
-pkgrel=2
+pkgver=1.2.1.r17.g022466e
+pkgrel=1
 arch=("x86_64")
 url="https://github.com/waycrate/swhkd"
 pkgdesc="A display server independent hotkey daemon inspired by sxhkd."
@@ -13,8 +13,10 @@ license=("BSD")
 depends=("polkit")
 makedepends=("rustup" "make" "git" "scdoc")
 conflicts=("swhkd-musl-git")
-source=("${_pkgname}::git+${url}.git")
-sha256sums=("SKIP")
+source=("${_pkgname}::git+${url}.git"
+        "${_pkgname}-vim::git+${url}-vim.git")
+sha256sums=("SKIP"
+            "SKIP")

 build(){
    cd "$_pkgname"
@@ -31,9 +33,15 @@ package() {

    install -Dm 644 ./docs/*.1.gz -t "$pkgdir/usr/share/man/man1/"
    install -Dm 644 ./docs/*.5.gz -t "$pkgdir/usr/share/man/man5/"
+
+   cd "${srcdir}/${_pkgname}-vim"
+   for i in ftdetect ftplugin indent syntax; do
+       install -Dm644 "$i/${_pkgname}.vim" \
+           "${pkgdir}/usr/share/vim/vimfiles/$i/${_pkgname}.vim"
+   done
 }

 pkgver() {
    cd $_pkgname
-   echo "$(grep "^version =" Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
+   git describe --long --tags --match'=[0-9]*' | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
 }

(also fixed the pkgver func)

Shinyzenith commented on 2022-05-27 13:55 (UTC)

@skerit No, it's a -git package so regardless of the version tagged in the PKGBUILD, you're on the latest commit.

skerit commented on 2022-05-27 10:26 (UTC)

The current installed version is actually 1.2.0.517.g04e5125, even though this still says 1.1.7.480.ge4a1a89. Do you have to manually update the version each time there is a commit? :o

Shinyzenith commented on 2022-03-20 09:03 (UTC)

@murlakatamenka Done!

murlakatamenka commented on 2022-03-20 08:12 (UTC) (edited on 2022-03-20 08:16 (UTC) by murlakatamenka)

Current PKGBUILD breaks permissions of /etc/polkit-1/rules.d - see polkit's PKGBUILD

Fix them after calling make:

chmod 750   /etc/polkit-1/rules.d
chown 0:102 /etc/polkit-1/rules.d

Shinyzenith commented on 2022-02-08 17:26 (UTC)

Since this is a git package, please do not mark this as out-of-date unless I forget to update it accordingly for any breaking changes.