mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
sequoia-sq: update to 0.34.0, adopt.
This commit is contained in:
parent
67d9581f62
commit
b0251df7d5
2 changed files with 13 additions and 67 deletions
|
@ -1,54 +0,0 @@
|
||||||
From 28c55b1a20b75b72e52532a7227db041a41f8bf4 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?=
|
|
||||||
<jan.christian@gruenhage.xyz>
|
|
||||||
Date: Mon, 11 Dec 2023 12:25:51 +0100
|
|
||||||
Subject: [PATCH] write man and completion artifacts to reasonable directories
|
|
||||||
|
|
||||||
---
|
|
||||||
.gitignore | 2 ++
|
|
||||||
build.rs | 12 ++++--------
|
|
||||||
2 files changed, 6 insertions(+), 8 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/.gitignore b/.gitignore
|
|
||||||
index 6de91e9..a61ad00 100644
|
|
||||||
--- a/.gitignore
|
|
||||||
+++ b/.gitignore
|
|
||||||
@@ -5,3 +5,5 @@
|
|
||||||
.dir-locals.el
|
|
||||||
/*.html
|
|
||||||
/*.pdf
|
|
||||||
+/man
|
|
||||||
+/completions
|
|
||||||
diff --git a/build.rs b/build.rs
|
|
||||||
index 1a844ad..268c54b 100644
|
|
||||||
--- a/build.rs
|
|
||||||
+++ b/build.rs
|
|
||||||
@@ -25,11 +25,7 @@ fn main() {
|
|
||||||
dump_help(sq.clone()).unwrap();
|
|
||||||
|
|
||||||
// Generate shell completions
|
|
||||||
- let outdir = match env::var_os("CARGO_TARGET_DIR") {
|
|
||||||
- None => return,
|
|
||||||
- Some(outdir) => outdir,
|
|
||||||
- };
|
|
||||||
-
|
|
||||||
+ let outdir = "completions";
|
|
||||||
fs::create_dir_all(&outdir).unwrap();
|
|
||||||
|
|
||||||
for shell in &[Shell::Bash, Shell::Fish, Shell::Zsh, Shell::PowerShell,
|
|
||||||
@@ -102,9 +98,9 @@ fn dump_help_inner(
|
|
||||||
|
|
||||||
fn build_man_pages() -> Result<()> {
|
|
||||||
// Man page support.
|
|
||||||
- let out_dir = std::path::PathBuf::from(
|
|
||||||
- std::env::var_os("OUT_DIR")
|
|
||||||
- .ok_or(std::io::Error::from(std::io::ErrorKind::NotFound))?);
|
|
||||||
+ let out_dir = std::path::PathBuf::from("man");
|
|
||||||
+
|
|
||||||
+ std::fs::create_dir_all(&out_dir)?;
|
|
||||||
|
|
||||||
let man = clap_mangen::Man::new(cli::build());
|
|
||||||
let mut buffer: Vec<u8> = Default::default();
|
|
||||||
--
|
|
||||||
2.43.0
|
|
||||||
|
|
|
@ -1,29 +1,29 @@
|
||||||
# Template file for 'sequoia-sq'
|
# Template file for 'sequoia-sq'
|
||||||
pkgname=sequoia-sq
|
pkgname=sequoia-sq
|
||||||
version=0.32.0
|
version=0.34.0
|
||||||
revision=1
|
revision=1
|
||||||
build_style=cargo
|
build_style=cargo
|
||||||
build_helper=qemu
|
build_helper=qemu
|
||||||
_deps="nettle-devel openssl-devel sqlite-devel"
|
hostmakedepends="pkg-config llvm clang capnproto"
|
||||||
hostmakedepends="pkg-config llvm clang ${_deps}"
|
makedepends="nettle-devel openssl-devel sqlite-devel capnproto-devel"
|
||||||
makedepends="${_deps}"
|
|
||||||
short_desc="Command-line frontend for Sequoia, a new OpenPGP implementation"
|
short_desc="Command-line frontend for Sequoia, a new OpenPGP implementation"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="classabbyamp <void@placeviolette.net>"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
homepage="https://sequoia-pgp.org/projects/#sq"
|
homepage="https://sequoia-pgp.org/projects/#sq"
|
||||||
|
changelog="https://gitlab.com/sequoia-pgp/sequoia-sq/-/raw/main/NEWS"
|
||||||
distfiles="https://gitlab.com/sequoia-pgp/sequoia-sq/-/archive/v${version}/sequoia-sq-v${version}.tar.gz"
|
distfiles="https://gitlab.com/sequoia-pgp/sequoia-sq/-/archive/v${version}/sequoia-sq-v${version}.tar.gz"
|
||||||
checksum=3d8a1cefb9db977696e84875bbd3401763695de32ec88afd7ea1f1823d8059c5
|
checksum=6458274008ef06362c912eb67e285b734906acdb5c56e8490144f45bc1b81d51
|
||||||
conflicts="squirrel"
|
conflicts="squirrel"
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
pre_build() {
|
||||||
armv*l) nocross="Requires C libs included in build.rs, which is currently broken in xbps-src. These failures only manifest on a hf archs right now";;
|
export ASSET_OUT_DIR=assets
|
||||||
esac
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
for page in man/*; do
|
for page in assets/man-pages/*; do
|
||||||
vman ${page}
|
vman ${page}
|
||||||
done
|
done
|
||||||
vcompletion completions/sq.bash bash
|
vcompletion assets/shell-completions/sq.bash bash
|
||||||
vcompletion completions/sq.fish fish
|
vcompletion assets/shell-completions/sq.fish fish
|
||||||
vcompletion completions/_sq zsh
|
vcompletion assets/shell-completions/_sq zsh
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue