main/iskey: new aport (MR 5000)

iskey is a tiny tool that reports if any of the given keys are pressed.

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-04-10 02:18:10 +02:00 committed by Clayton Craft
parent 118a30935e
commit 51cde04a4b
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A

34
main/iskey/APKBUILD Normal file
View file

@ -0,0 +1,34 @@
# Maintainer: Caleb Connolly <caleb@postmarketos.org>
pkgname=iskey
pkgver=1
pkgrel=0
pkgdesc="Tiny tool to check if a key is pressed"
url="https://postmarketos.org"
arch="all"
license="GPL-2.0"
makedepends="meson linux-headers libevdev-dev"
options="!check"
_commit="4bc43d2bbf424ca90e11b3ed0c56e925898a130d"
source="https://gitlab.com/postmarketOS/buffybox/-/archive/$_commit/buffybox-$_commit.tar.gz"
# We're only building the iskey utility
builddir="$srcdir/buffybox-$_commit/iskey"
build() {
abuild-meson . output
meson compile -C output
}
package() {
install -Dm755 output/iskey \
"$pkgdir"/usr/bin/iskey
# Make sure updates to this package trigger mkinitfs
touch iskey
install -Dm644 iskey \
"$pkgdir"/usr/share/mkinitfs-triggers/iskey
}
sha512sums="
d255a04e1c0bb98af579d5bce4fad4e618d39c5d9b5cd78299fc9ae30e33132af0e9d899df5d1754acc8b1ca2ff790dda072b14d1e41993a588537b23ebea032 buffybox-4bc43d2bbf424ca90e11b3ed0c56e925898a130d.tar.gz
"