Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Packages: sequoia cli utilities #32480

Merged
merged 3 commits into from
Sep 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions srcpkgs/sequoia-sop/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Template file for 'sequoia-sop'
pkgname=sequoia-sop
version=0.27.1
revision=1
wrksrc="${pkgname}-v${version}"
build_style=cargo
configure_args="--bin sqop --features cli"
hostmakedepends="pkg-config llvm clang"
makedepends="nettle-devel"
short_desc="Implementation of the Stateless OpenPGP CLI using Sequoia"
maintainer="Jan Christian Grünhage <[email protected]>"
license="GPL-2.0-or-later"
homepage="https://gitlab.com/sequoia-pgp/sequoia-sop/"
distfiles="https://gitlab.com/sequoia-pgp/sequoia-sop/-/archive/v${version}/sequoia-sop-v${version}.tar.gz"
checksum=5094965da3fb8c67b7224534ddcd94cf3409d4c7c74e53473d7804f2a343e2aa

post_install() {
for page in man-sqop/*; do
vman ${page}
done
}
31 changes: 31 additions & 0 deletions srcpkgs/sequoia-sq/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Template file for 'sequoia-sq'
pkgname=sequoia-sq
version=0.27.0
revision=1
wrksrc="${pkgname}-v${version}"
build_wrksrc="sq"
build_style=cargo
_deps="nettle-devel openssl-devel"
hostmakedepends="pkg-config llvm clang ${_deps}"
makedepends="${_deps}"
short_desc="Command-line frontend for Sequoia, a new OpenPGP implementation"
maintainer="Jan Christian Grünhage <[email protected]>"
license="GPL-2.0-or-later"
homepage="https://sequoia-pgp.org/projects/#sq"
distfiles="https://gitlab.com/sequoia-pgp/sequoia/-/archive/sq/v${version}/sequoia-sq-v${version}.tar.gz"
checksum=e943528be6af2b14c5b9d3a011335233d985ee69f43700d29d99908359f8c345
conflicts="squirrel"

case "$XBPS_TARGET_MACHINE" in
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";;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We talked on IRC about fixing this by updating the bindgen crate, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah. I tried it with EXTRA_CLANG_ARGS_<TARGET> after updating bindgen to 0.59, which I had hoped would help, but without success. The problems persisted

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested a native build on armv7l and it seems to work, so nocross seems like the right choice here.

esac

post_patch() {
vsed -e "/-Dwarnings/d" -i "${wrksrc}/.cargo/config.toml"
}

post_install() {
for page in man-sq-autocrypt/*; do
vman ${page}
done
}
2 changes: 2 additions & 0 deletions srcpkgs/sequoia-sq/update
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
site="https://gitlab.com/sequoia-pgp/sequoia/-/tags?format=atom"
pattern="<title>sq/v\K[\d.]+(?=</title>)"
14 changes: 14 additions & 0 deletions srcpkgs/sequoia-sqv/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Template file for 'sequoia-sqv'
pkgname=sequoia-sqv
version=1.1.0
revision=1
wrksrc="${pkgname}-v${version}"
build_style=cargo
hostmakedepends="pkg-config llvm clang"
makedepends="nettle-devel"
short_desc="Simple PGP signature verification program"
maintainer="Jan Christian Grünhage <[email protected]>"
license="GPL-2.0-or-later"
homepage="https://gitlab.com/sequoia-pgp/sequoia-sqv"
distfiles="https://gitlab.com/sequoia-pgp/sequoia-sqv/-/archive/v${version}/sequoia-sqv-v${version}.tar.gz"
checksum=58eb8f7f803b7fee3f709821d50a78f376aa7f3dc29cfeea4863b37449de2c29