Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Package request: keyd
@ 2022-05-18  1:35 Barbaross93
  2022-05-18  3:03 ` classabbyamp
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Barbaross93 @ 2022-05-18  1:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]

New issue by Barbaross93 on void-packages repository

https://github.com/void-linux/void-packages/issues/37175

Description:
I recently stumbled upon [keyd](https://github.com/rvaiya/keyd), a sweet and simple keyboard daemon similar to kmonad. I've made a template that works, but I don't think I did things "properly", notably the usage of `make_use_env` and the manual install of the needed quirk file for libinput. If there is interest, I'll go ahead and make a PR provided I can get some feedback.

Here's the template:
```
# Template file for 'keyd'
pkgname=keyd
version=2.4.0
revision=1
build_style=gnu-makefile
make_use_env="1"
short_desc="Key remapping daemon for linux"
maintainer="Barbaross <cullenrss@gmail.com>"
license="MIT"
homepage="https://github.com/rvaiya/keyd"
distfiles="https://github.com/rvaiya/keyd/archive/refs/tags/v${version}.tar.gz"
checksum=100007894ac4fa6e95f5de5c2fe992c8b00e68d9df76c4bcdd8402a29d7b4058

post_install() {
	vlicense LICENSE
	vinstall ${wrksrc}/keyd.quirks 644 usr/share/libinput 30-keyd.quirks
}
```



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Package request: keyd
  2022-05-18  1:35 [ISSUE] Package request: keyd Barbaross93
@ 2022-05-18  3:03 ` classabbyamp
  2022-05-18  3:04 ` classabbyamp
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: classabbyamp @ 2022-05-18  3:03 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 503 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/issues/37175#issuecomment-1129517285

Comment:
I'd definitely suggest making the PR whether there's interest from others or not.

Just a couple notes from what I see here:
- `make_use_env=yes`
- `vinstall` assumes the first argument is in `$wrksrc`, so it shouldn't need to be specified
- if it's supposed to be run as a system-wide service, adding a runit service for it would probably be useful

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Package request: keyd
  2022-05-18  1:35 [ISSUE] Package request: keyd Barbaross93
  2022-05-18  3:03 ` classabbyamp
@ 2022-05-18  3:04 ` classabbyamp
  2022-05-18 11:52 ` Barbaross93
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: classabbyamp @ 2022-05-18  3:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 550 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/issues/37175#issuecomment-1129517285

Comment:
I'd definitely suggest making the PR whether there's interest from others or not (you've already done most of the work for it!).

Just a couple notes from what I see here:
- `make_use_env=yes`
- `vinstall` assumes the first argument is in `$wrksrc`, so it shouldn't need to be specified
- if it's supposed to be run as a system-wide service, adding a runit service for it would probably be useful

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Package request: keyd
  2022-05-18  1:35 [ISSUE] Package request: keyd Barbaross93
  2022-05-18  3:03 ` classabbyamp
  2022-05-18  3:04 ` classabbyamp
@ 2022-05-18 11:52 ` Barbaross93
  2022-05-18 16:48 ` classabbyamp
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Barbaross93 @ 2022-05-18 11:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 507 bytes --]

New comment by Barbaross93 on void-packages repository

https://github.com/void-linux/void-packages/issues/37175#issuecomment-1129913331

Comment:
Thanks for the tips @classabbyamp ! I forgot to mention one other problem I ran into: the project's make file tries to create the group `keyd` but fails. Do you know whats the proper way to fix this?

Technically, you could run keyd as a user service provided the user is part of the `keyd` group so I'm not sure if it makes sense to create a runit service.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Package request: keyd
  2022-05-18  1:35 [ISSUE] Package request: keyd Barbaross93
                   ` (2 preceding siblings ...)
  2022-05-18 11:52 ` Barbaross93
@ 2022-05-18 16:48 ` classabbyamp
  2022-05-19  5:48 ` Barbaross93
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: classabbyamp @ 2022-05-18 16:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 289 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/issues/37175#issuecomment-1130251816

Comment:
you can use `system_groups` to have xbps create the group when stealing the package, but you may need to patch it out of the build files too

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Package request: keyd
  2022-05-18  1:35 [ISSUE] Package request: keyd Barbaross93
                   ` (3 preceding siblings ...)
  2022-05-18 16:48 ` classabbyamp
@ 2022-05-19  5:48 ` Barbaross93
  2022-05-19  6:17 ` classabbyamp
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: Barbaross93 @ 2022-05-19  5:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 187 bytes --]

New comment by Barbaross93 on void-packages repository

https://github.com/void-linux/void-packages/issues/37175#issuecomment-1131235777

Comment:
Excellent, thanks! I'll make a PR soon.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Package request: keyd
  2022-05-18  1:35 [ISSUE] Package request: keyd Barbaross93
                   ` (4 preceding siblings ...)
  2022-05-19  5:48 ` Barbaross93
@ 2022-05-19  6:17 ` classabbyamp
  2022-06-15  1:57 ` classabbyamp
  2022-06-15  1:57 ` [ISSUE] [CLOSED] " classabbyamp
  7 siblings, 0 replies; 9+ messages in thread
From: classabbyamp @ 2022-05-19  6:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 291 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/issues/37175#issuecomment-1130251816

Comment:
you can use `system_groups` to have xbps create the group when installing the package, but you may need to patch it out of the build files too

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Package request: keyd
  2022-05-18  1:35 [ISSUE] Package request: keyd Barbaross93
                   ` (5 preceding siblings ...)
  2022-05-19  6:17 ` classabbyamp
@ 2022-06-15  1:57 ` classabbyamp
  2022-06-15  1:57 ` [ISSUE] [CLOSED] " classabbyamp
  7 siblings, 0 replies; 9+ messages in thread
From: classabbyamp @ 2022-06-15  1:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 163 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/issues/37175#issuecomment-1155889584

Comment:
done in #37195

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ISSUE] [CLOSED] Package request: keyd
  2022-05-18  1:35 [ISSUE] Package request: keyd Barbaross93
                   ` (6 preceding siblings ...)
  2022-06-15  1:57 ` classabbyamp
@ 2022-06-15  1:57 ` classabbyamp
  7 siblings, 0 replies; 9+ messages in thread
From: classabbyamp @ 2022-06-15  1:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1074 bytes --]

Closed issue by Barbaross93 on void-packages repository

https://github.com/void-linux/void-packages/issues/37175

Description:
I recently stumbled upon [keyd](https://github.com/rvaiya/keyd), a sweet and simple keyboard daemon similar to kmonad. I've made a template that works, but I don't think I did things "properly", notably the usage of `make_use_env` and the manual install of the needed quirk file for libinput. If there is interest, I'll go ahead and make a PR provided I can get some feedback.

Here's the template:
```
# Template file for 'keyd'
pkgname=keyd
version=2.4.0
revision=1
build_style=gnu-makefile
make_use_env="1"
short_desc="Key remapping daemon for linux"
maintainer="Barbaross <cullenrss@gmail.com>"
license="MIT"
homepage="https://github.com/rvaiya/keyd"
distfiles="https://github.com/rvaiya/keyd/archive/refs/tags/v${version}.tar.gz"
checksum=100007894ac4fa6e95f5de5c2fe992c8b00e68d9df76c4bcdd8402a29d7b4058

post_install() {
	vlicense LICENSE
	vinstall ${wrksrc}/keyd.quirks 644 usr/share/libinput 30-keyd.quirks
}
```



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-06-15  1:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-18  1:35 [ISSUE] Package request: keyd Barbaross93
2022-05-18  3:03 ` classabbyamp
2022-05-18  3:04 ` classabbyamp
2022-05-18 11:52 ` Barbaross93
2022-05-18 16:48 ` classabbyamp
2022-05-19  5:48 ` Barbaross93
2022-05-19  6:17 ` classabbyamp
2022-06-15  1:57 ` classabbyamp
2022-06-15  1:57 ` [ISSUE] [CLOSED] " classabbyamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).