blob: 641c9f7c3a9eb4dac9453b3d22b2466c0ff726b3 (
plain)
1 # Description: Manage your GnuPG keys with ease!
2 # URL: https://github.com/orhun/gpg-tui
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: gpgme libxkbcommon rust
5
6 name=gpg-tui
7 version=0.9.3
8 release=1
9 source=(https://github.com/orhun/gpg-tui/archive/v$version/$name-$version.tar.gz)
10
11 build() {
12 prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
13 mkdir "$PKGMK_SOURCE_DIR/rust" || true
14 export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
15
16 cargo build --release --manifest-path $name-$version/Cargo.toml
17 mkdir $SRC/completions
18 OUT_DIR=$SRC/completions/ cargo run --bin gpg-tui-completions \
19 --manifest-path $name-$version/Cargo.toml
20
21 install -Dt $PKG/usr/bin $name-$version/target/release/$name
22
23 prt-get isinst bash-completion && install -Dm 644 \
24 $SRC/completions/$name.bash \
25 -t $PKG/usr/share/bash-completion/completions/$name
26 prt-get isinst zsh && install -Dm 644 completions/_$name \
27 -t $PKG/usr/share/zsh/site-functions
28
29 install -Dm 644 $name-$version/man/$name.1 -t $PKG/usr/share/man/man1
30 }
|