David Runge pushed to branch main at Arch Linux / Packaging / Packages /
nethsm-cli
Commits:
e36a411f by David Runge at 2024-08-30T19:59:53+02:00
upgpkg: 0.2.0-1
Add man pages and shell completions.
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,18 +1,20 @@
pkgbase = nethsm-cli
pkgdesc = A command line interface (CLI) for the Nitrokey NetHSM
- pkgver = 0.1.0
+ pkgver = 0.2.0
pkgrel = 1
url =
https://gitlab.archlinux.org/archlinux/signstar/-/tree/main/nethsm-cli
arch = x86_64
license = Apache-2.0 OR MIT
makedepends = git
+ makedepends = just
makedepends = mold
makedepends = rust
+ makedepends = rust-script
depends = gcc-libs
depends = glibc
options = !lto
- source =
signstar::git+https://gitlab.archlinux.org/archlinux/signstar.git?signed#tag=nethsm-cli/0.1.0
+ source =
signstar::git+https://gitlab.archlinux.org/archlinux/signstar.git?signed#tag=nethsm-cli/0.2.0
validpgpkeys = 991F6E3F0765CF6295888586139B09DA5BF0D338
- sha256sums =
8f3dca1724a2687f7c31861c445b6ed0f664dce8dfd079b446b7cac6e1dc8417
+ sha256sums =
764cd4b9764c5a3d9e2c322f1297be9b226f643d42bde98e2f668cba788b0c8b
pkgname = nethsm-cli
=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
pkgname=nethsm-cli
_name=signstar
-pkgver=0.1.0
+pkgver=0.2.0
pkgrel=1
pkgdesc="A command line interface (CLI) for the Nitrokey NetHSM"
arch=(x86_64)
@@ -15,12 +15,14 @@ depends=(
)
makedepends=(
git
+ just
mold
rust
+ rust-script
)
options=(!lto) # ring does not work with LTO
-source=($_name::git+$_url.git?signed#tag=nethsm-cli/$pkgver)
-sha256sums=('8f3dca1724a2687f7c31861c445b6ed0f664dce8dfd079b446b7cac6e1dc8417')
+source=($_name::git+$_url.git?signed#tag=$pkgname/$pkgver)
+sha256sums=('764cd4b9764c5a3d9e2c322f1297be9b226f643d42bde98e2f668cba788b0c8b')
validpgpkeys=(991F6E3F0765CF6295888586139B09DA5BF0D338) # David Runge
<[email protected]>
prepare() {
@@ -34,6 +36,8 @@ build() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features --package $pkgname
+ just generate shell_completions $pkgname
+ just generate manpages $pkgname
}
check() {
@@ -46,4 +50,8 @@ package() {
install -vDm 755 $_name/target/release/nethsm -t "$pkgdir/usr/bin/"
install -vDm 644 $_name/$pkgname/README.md -t
"$pkgdir/usr/share/doc/$pkgname/"
install -vDm 644 $_name/LICENSES/MIT.txt -t
"$pkgdir/usr/share/licenses/$pkgname/"
+ install -vDm 644 $_name/target/manpages/*.1 -t "$pkgdir/usr/share/man/man1/"
+ install -vDm 644 $_name/target/shell_completions/$pkgname.bash
"$pkgdir/usr/share/bash-completion/completions/$pkgname"
+ install -vDm 644 $_name/target/shell_completions/_$pkgname -t
"$pkgdir/usr/share/zsh/site-functions/"
+ install -vDm 644 $_name/target/shell_completions/$pkgname.fish -t
"$pkgdir/usr/share/fish/vendor_completions.d/"
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/nethsm-cli/-/commit/e36a411f2074ef1a973875183835efbbc4cc64d0
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/nethsm-cli/-/commit/e36a411f2074ef1a973875183835efbbc4cc64d0
You're receiving this email because of your account on gitlab.archlinux.org.