Files
alr-repo/qmk-hid/alr.sh

62 lines
1.8 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name='qmk-hid'
version='0.1.12'
release='4'
desc='Commandline tool for interacting with QMK devices over HID.'
desc_ru='Утилита командной строки для взаимодействия с QMK-устройствами через HID'
homepage='https://github.com/FrameworkComputer/qmk_hid'
maintainer='Evgeny Khramov <xpamych@yandex.ru>'
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
architectures=('amd64')
license=('BSD')
provides=('qmk-hid')
conflicts=('qmk-hid' 'qmk-hid-git')
deps=('libgcc' 'systemd-libs' 'libcap')
deps_alt=('libgcc1' 'systemd' 'libcap')
deps_arch=('gcc-libs' 'systemd-libs' 'libcap')
deps_debian=('libgcc-s1' 'libsystemd0' 'libcap2')
deps_fedora=("${deps[@]}")
deps_redos=("${deps_fedora[@]}")
deps_rhel=("${deps_fedora[@]}")
deps_rosa=("${deps_fedora[@]}")
deps_alpine=('libgcc' 'systemd' 'libcap')
build_deps=('cargo' 'rust-libudev-devel')
build_deps_alt=('rust-cargo' 'libudev-rust-devel')
build_deps_arch=('rust' 'systemd')
build_deps_debian=('cargo' 'libudev-dev')
build_deps_fedora=("${build_deps[@]}")
build_deps_redos=("${build_deps_fedora[@]}")
build_deps_rhel=("${build_deps_fedora[@]}")
build_deps_rosa=("${build_deps_fedora[@]}")
build_deps_alpine=('rust' 'cargo' 'eudev-dev')
sources=("https://github.com/FrameworkComputer/qmk_hid/archive/v${version}.tar.gz")
checksums=('SKIP')
options=('!lto')
prepare() {
cd $srcdir/qmk_hid-${version}
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked
}
build() {
cd $srcdir/qmk_hid-${version}
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
package() {
cd $srcdir/qmk_hid-${version}
install-binary ./target/release/qmk_hid
install-license ./LICENSE.md ${name}/LICENSE
}
files() {
files-find-bin
files-find-share-license qmk-hid
}