Skip to content

Commit

Permalink
Incorporate Foxboron's PKGBUILD fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nickray committed Nov 21, 2021
1 parent c639eb6 commit 0e41cc3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Fix the Windows 10 bug (via `lpc55-host` bump)
- Fix the incorrect udev rules file
- Fix the AUR Arch Linux package
- Fix and improve the AUR Arch Linux package (@Foxboron)
- Completely redesign the update process (modeling Device, Firmware, etc.)
- Re-activate OATH (via released `flexiber`)
- Expose parts of Solo 2 PKI
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build:
# for AUR things, kudos to <https://github.com/Foxboron/sbctl>

push-aur:
cd pkg/arch; makepkg --printscr-info > .SRCINFO
cd pkg/arch; makepkg --printsrcinfo > .SRCINFO
git subtree push -P pkg/arch

.PHONY: local-aur
Expand Down
6 changes: 3 additions & 3 deletions pkg/arch/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pkgbase = solo2-cli
pkgdesc = Solo 2 CLI
pkgver = 0.0.6
pkgver = 0.0.7
pkgrel = 1
url = https://github.com/solokeys/solo2-cli
arch = x86_64
Expand All @@ -10,8 +10,8 @@ pkgbase = solo2-cli
makedepends = git
makedepends = systemd
depends = systemd-libs
conflicts = solo2-cli-git
source = solo2-cli-0.0.6.tar.gz::https://github.com/solokeys/solo2-cli/archive/refs/tags/v0.0.6.tar.gz
depends = ccid
source = solo2-cli.tar.gz::https://github.com/solokeys/solo2-cli/archive/refs/tags/v0.0.7.tar.gz
sha256sums = 083014e217779f190e49e4839ae99781c1559690a3ee5d96cbdcb1489e663049

pkgname = solo2-cli
12 changes: 6 additions & 6 deletions pkg/arch/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Maintainer: Nicolas Stalder <[email protected]>
# Helpful suggestions by Foxboron
pkgname=solo2-cli
pkgver=0.0.7
pkgrel=1
Expand All @@ -10,7 +11,6 @@ license=(Apache MIT)
depends=(systemd-libs ccid)
# note we do not need Arch `hidapi` package here, it's a git submodule of Rust hidapi
makedepends=(cargo git systemd)
conflicts=(solo2-cli-git)
source=(
"$pkgname.tar.gz::https://github.com/solokeys/solo2-cli/archive/refs/tags/v${pkgver}.tar.gz"
)
Expand All @@ -20,14 +20,14 @@ sha256sums=(

build() {
cd "${pkgname}-${pkgver}"
cargo build --release --frozen
cargo build --release --frozen --all-features
}

check() {
cd "${pkgname}-${pkgver}"
# make sure shared libs work
target/release/solo2 --version
cargo test --release
cargo test --release --all-features
}

package() {
Expand All @@ -36,9 +36,9 @@ package() {
install -Dm644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgnamefull/LICENSE-MIT"

# completions
install -Dm644 target/release/_solo2 -t $pkgdir/usr/share/zsh/site-functions
install -Dm644 target/release/solo2.bash $pkgdir/usr/share/bash-completion/completions/solo2
install -Dm644 target/release/_solo2 -t "$pkgdir/usr/share/zsh/site-functions"
install -Dm644 target/release/solo2.bash "$pkgdir/usr/share/bash-completion/completions/solo2"

# udev rule
install -Dm644 70-solo2.rules -t $pkgdir/usr/lib/udev/rules.d
install -Dm644 70-solo2.rules -t "$pkgdir/usr/lib/udev/rules.d"
}

0 comments on commit 0e41cc3

Please sign in to comment.