keyfork: add keyfork-qrcode-scan debug binary
This commit is contained in:
parent
4c31ca1fe9
commit
10c092d6e6
|
@ -24,7 +24,10 @@ build() {
|
||||||
# NOTE: Do not use `--all-features` as features may be incomopatible with
|
# NOTE: Do not use `--all-features` as features may be incomopatible with
|
||||||
# each other.
|
# each other.
|
||||||
KEYFORK_FEATURES="--no-default-features --features completion,qrcode-decode-backend-zbar,sequoia-crypto-backend-nettle"
|
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
|
mkdir completions
|
||||||
cargo run --frozen --release --bin keyfork $KEYFORK_FEATURES completion bash > completions/bash
|
cargo run --frozen --release --bin keyfork $KEYFORK_FEATURES completion bash > completions/bash
|
||||||
cargo run --frozen --release --bin keyfork $KEYFORK_FEATURES completion zsh > completions/zsh
|
cargo run --frozen --release --bin keyfork $KEYFORK_FEATURES completion zsh > completions/zsh
|
||||||
|
@ -35,6 +38,7 @@ package() {
|
||||||
build="$srcdir/$pkgname/target/release"
|
build="$srcdir/$pkgname/target/release"
|
||||||
target="$pkgdir/usr/bin"
|
target="$pkgdir/usr/bin"
|
||||||
install -Dm755 "$build/$pkgname" "$pkgdir/usr/bin/$pkgname"
|
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/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/zsh" "$pkgdir/usr/share/zsh/site-functions/_$pkgname"
|
||||||
install -Dm644 "$srcdir/$pkgname/completions/fish" "$pkgdir/usr/share/fish/vendor_completions.d/$pkgname"
|
install -Dm644 "$srcdir/$pkgname/completions/fish" "$pkgdir/usr/share/fish/vendor_completions.d/$pkgname"
|
||||||
|
|
Loading…
Reference in New Issue