keyfork: add keyfork-qrcode-scan debug binary

This commit is contained in:
Ryan Heywood 2024-02-02 22:26:04 -05:00
parent 4c31ca1fe9
commit 10c092d6e6
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
1 changed files with 5 additions and 1 deletions

View File

@ -24,7 +24,10 @@ build() {
# NOTE: Do not use `--all-features` as features may be incomopatible with
# each other.
KEYFORK_FEATURES="--no-default-features --features completion,qrcode-decode-backend-zbar,sequoia-crypto-backend-nettle"
cargo build --frozen --release -p keyfork $KEYFORK_FEATURES
cargo build --frozen --release --bin keyfork-qrcode-scan --no-default-features --features decode-backend-zbar
cargo build --frozen --release --bin keyfork $KEYFORK_FEATURES
mkdir completions
cargo run --frozen --release --bin keyfork $KEYFORK_FEATURES completion bash > completions/bash
cargo run --frozen --release --bin keyfork $KEYFORK_FEATURES completion zsh > completions/zsh
@ -35,6 +38,7 @@ package() {
build="$srcdir/$pkgname/target/release"
target="$pkgdir/usr/bin"
install -Dm755 "$build/$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm755 "$build/$pkgname-qrcode-scan" "$pkgdir/usr/bin/$pkgname-qrcode-scan"
install -Dm644 "$srcdir/$pkgname/completions/bash" "$pkgdir/usr/share/bash-completion/completions/$pkgname"
install -Dm644 "$srcdir/$pkgname/completions/zsh" "$pkgdir/usr/share/zsh/site-functions/_$pkgname"
install -Dm644 "$srcdir/$pkgname/completions/fish" "$pkgdir/usr/share/fish/vendor_completions.d/$pkgname"