11# Maintainer: Nicolas Stalder <n+archlinux@stalder.io>
2+ # Helpful suggestions by Foxboron
23pkgname=solo2-cli
34pkgver=0.0.7
45pkgrel=1
@@ -10,7 +11,6 @@ license=(Apache MIT)
1011depends=(systemd-libs ccid)
1112# note we do not need Arch `hidapi` package here, it's a git submodule of Rust hidapi
1213makedepends=(cargo git systemd)
13- conflicts=(solo2-cli-git)
1414source=(
1515 " $pkgname .tar.gz::https://github.com/solokeys/solo2-cli/archive/refs/tags/v${pkgver} .tar.gz"
1616)
@@ -20,14 +20,14 @@ sha256sums=(
2020
2121build () {
2222 cd " ${pkgname} -${pkgver} "
23- cargo build --release --frozen
23+ cargo build --release --frozen --all-features
2424}
2525
2626check () {
2727 cd " ${pkgname} -${pkgver} "
2828 # make sure shared libs work
2929 target/release/solo2 --version
30- cargo test --release
30+ cargo test --release --all-features
3131}
3232
3333package () {
@@ -36,9 +36,9 @@ package() {
3636 install -Dm644 LICENSE-MIT " $pkgdir /usr/share/licenses/$pkgnamefull /LICENSE-MIT"
3737
3838 # completions
39- install -Dm644 target/release/_solo2 -t $pkgdir /usr/share/zsh/site-functions
40- install -Dm644 target/release/solo2.bash $pkgdir /usr/share/bash-completion/completions/solo2
39+ install -Dm644 target/release/_solo2 -t " $pkgdir /usr/share/zsh/site-functions"
40+ install -Dm644 target/release/solo2.bash " $pkgdir /usr/share/bash-completion/completions/solo2"
4141
4242 # udev rule
43- install -Dm644 70-solo2.rules -t $pkgdir /usr/lib/udev/rules.d
43+ install -Dm644 70-solo2.rules -t " $pkgdir /usr/lib/udev/rules.d"
4444}
0 commit comments