# Maintainer: Aaron Honeycutt pkgname=system76-keyboard-configurator pkgver=1.3.10 pkgrel=1 pkgdesc="Configures keymap and backlight of System76 keyboards." arch=('x86_64' 'aarch64') url="https://github.com/pop-os/keyboard-configurator" license=('GPL3') depends=('gtk3' 'hidapi' 'xz') makedepends=('cargo' 'systemd') source=("keyboard-configurator-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz") sha256sums=('0fa015ce70ddfb6af71064e63001e7bea47ae5f8a93667dc3bf4c2373219aea0') prepare() { cd "keyboard-configurator-$pkgver" export RUSTUP_TOOLCHAIN=stable make vendor } build() { cd "keyboard-configurator-$pkgver" export RUSTUP_TOOLCHAIN=stable make VENDOR=1 prefix=/usr } package() { cd "keyboard-configurator-$pkgver" make prefix=/usr DESTDIR="$pkgdir/" install }