Skip to content

Commit 0e41cc3

Browse files
committed
Incorporate Foxboron's PKGBUILD fixes
1 parent c639eb6 commit 0e41cc3

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
- Fix the Windows 10 bug (via `lpc55-host` bump)
1111
- Fix the incorrect udev rules file
12-
- Fix the AUR Arch Linux package
12+
- Fix and improve the AUR Arch Linux package (@Foxboron)
1313
- Completely redesign the update process (modeling Device, Firmware, etc.)
1414
- Re-activate OATH (via released `flexiber`)
1515
- Expose parts of Solo 2 PKI

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build:
66
# for AUR things, kudos to <https://github.com/Foxboron/sbctl>
77

88
push-aur:
9-
cd pkg/arch; makepkg --printscr-info > .SRCINFO
9+
cd pkg/arch; makepkg --printsrcinfo > .SRCINFO
1010
git subtree push -P pkg/arch
1111

1212
.PHONY: local-aur

pkg/arch/.SRCINFO

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pkgbase = solo2-cli
22
pkgdesc = Solo 2 CLI
3-
pkgver = 0.0.6
3+
pkgver = 0.0.7
44
pkgrel = 1
55
url = https://github.com/solokeys/solo2-cli
66
arch = x86_64
@@ -10,8 +10,8 @@ pkgbase = solo2-cli
1010
makedepends = git
1111
makedepends = systemd
1212
depends = systemd-libs
13-
conflicts = solo2-cli-git
14-
source = solo2-cli-0.0.6.tar.gz::https://github.com/solokeys/solo2-cli/archive/refs/tags/v0.0.6.tar.gz
13+
depends = ccid
14+
source = solo2-cli.tar.gz::https://github.com/solokeys/solo2-cli/archive/refs/tags/v0.0.7.tar.gz
1515
sha256sums = 083014e217779f190e49e4839ae99781c1559690a3ee5d96cbdcb1489e663049
1616

1717
pkgname = solo2-cli

pkg/arch/PKGBUILD

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Maintainer: Nicolas Stalder <[email protected]>
2+
# Helpful suggestions by Foxboron
23
pkgname=solo2-cli
34
pkgver=0.0.7
45
pkgrel=1
@@ -10,7 +11,6 @@ license=(Apache MIT)
1011
depends=(systemd-libs ccid)
1112
# note we do not need Arch `hidapi` package here, it's a git submodule of Rust hidapi
1213
makedepends=(cargo git systemd)
13-
conflicts=(solo2-cli-git)
1414
source=(
1515
"$pkgname.tar.gz::https://github.com/solokeys/solo2-cli/archive/refs/tags/v${pkgver}.tar.gz"
1616
)
@@ -20,14 +20,14 @@ sha256sums=(
2020

2121
build() {
2222
cd "${pkgname}-${pkgver}"
23-
cargo build --release --frozen
23+
cargo build --release --frozen --all-features
2424
}
2525

2626
check() {
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

3333
package() {
@@ -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

Comments
 (0)