Commit 0937cc78 authored by Caleb Connolly's avatar Caleb Connolly Committed by Bart Ribbers
Browse files

testing/hkdm: new aport

parent 0d3f5f54
Pipeline #102125 canceled with stages
in 3 seconds
# Maintainer: Caleb Connolly <caleb@connolly.tech>
pkgname=hkdm
pkgver=0.1.4
pkgrel=0
pkgdesc="Lighter-weight hotkey daemon"
url="https://gitlab.com/postmarketOS/hkdm"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # limited by rust/cargo
license="GPL-3.0-only"
source="https://gitlab.com/postmarketOS/hkdm/-/archive/$pkgver/hkdm-$pkgver.tar.gz
hkdm.openrc
hkdm.conf"
makedepends="cargo libevdev-dev"
_cargo_opts="--frozen --no-default-features"
prepare() {
default_prepare
cargo fetch --locked
}
build() {
cargo build $_cargo_opts --release
}
check() {
cargo test $_cargo_opts
}
package() {
install -Dm644 "$builddir"/hkdm.example.toml "$pkgdir"/etc/hkdm/config.d/hkdm.toml.example
install -Dm644 "$srcdir"/hkdm.conf "$pkgdir"/etc/conf.d/hkdm
install -Dm755 target/release/hkdm -t "$pkgdir"/usr/sbin/
install -Dm755 "$srcdir"/hkdm.openrc "$pkgdir"/etc/init.d/hkdm
}
sha512sums="
82bc59d96d0642c183a37a0c56109e7cdf1370d104217ba7e8b909f764d540f6f8b5f80d23fc5c607ad213aa85b0ae575156bd9d170b286babc0a5d5ae335ed4 hkdm-0.1.4.tar.gz
be538eeebeccc2454817a1df11b8ce6063f51df888c852f2e361aa2ebd9ad94b9c82c7c71fa1215be426aa5fa59993e1bb6132c9b2ff352cadc1e2b4125cb392 hkdm.openrc
8dac666f468bc27fc9b8083f61a6bc0cac493784cd74ac1103fd44daa00103676ea836c48c82bd8cb5772cae07cc42f283b7ff326172cd40e7f91191577788ad hkdm.conf
"
supervisor=supervise-daemon
\ No newline at end of file
#!/sbin/openrc-run
command="/usr/sbin/hkdm"
name="HKDM"
description="Hotkey Daemon (For) Mobile"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment