1
1
# Maintainer: Nicolas Stalder <[email protected] >
2
+ # Helpful suggestions by Foxboron
2
3
pkgname=solo2-cli
3
4
pkgver=0.0.7
4
5
pkgrel=1
@@ -10,7 +11,6 @@ license=(Apache MIT)
10
11
depends=(systemd-libs ccid)
11
12
# note we do not need Arch `hidapi` package here, it's a git submodule of Rust hidapi
12
13
makedepends=(cargo git systemd)
13
- conflicts=(solo2-cli-git)
14
14
source=(
15
15
" $pkgname .tar.gz::https://github.com/solokeys/solo2-cli/archive/refs/tags/v${pkgver} .tar.gz"
16
16
)
@@ -20,14 +20,14 @@ sha256sums=(
20
20
21
21
build () {
22
22
cd " ${pkgname} -${pkgver} "
23
- cargo build --release --frozen
23
+ cargo build --release --frozen --all-features
24
24
}
25
25
26
26
check () {
27
27
cd " ${pkgname} -${pkgver} "
28
28
# make sure shared libs work
29
29
target/release/solo2 --version
30
- cargo test --release
30
+ cargo test --release --all-features
31
31
}
32
32
33
33
package () {
@@ -36,9 +36,9 @@ package() {
36
36
install -Dm644 LICENSE-MIT " $pkgdir /usr/share/licenses/$pkgnamefull /LICENSE-MIT"
37
37
38
38
# 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"
41
41
42
42
# 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"
44
44
}
0 commit comments