diff --git a/srcpkgs/pijul/patches/bindgen.patch b/srcpkgs/pijul/patches/bindgen.patch deleted file mode 100644 index f76431e4e33..00000000000 --- a/srcpkgs/pijul/patches/bindgen.patch +++ /dev/null @@ -1,9 +0,0 @@ ---- a/Cargo.toml -+++ b/Cargo.toml -@@ -133,3 +133,6 @@ - version = "2.0" - [target."cfg(unix)".dependencies.tokio-uds] - version = "0.2" -+ -+[patch.crates-io] -+"sequoia-rfc2822" = {path = './sequoia/rfc2822'} diff --git a/srcpkgs/pijul/template b/srcpkgs/pijul/template index 4d18c61450c..f8ae3d352e0 100644 --- a/srcpkgs/pijul/template +++ b/srcpkgs/pijul/template @@ -1,32 +1,22 @@ # Template file for 'pijul' pkgname=pijul -version=0.12.2 -revision=6 -create_wrksrc=yes +version=1.0.0.beta.6 +revision=1 +_crates_version="${version%.*.*}-${version#*.*.*.}" build_style=cargo -_sequoia_ver=0.9.0 -hostmakedepends="pkg-config clang" -makedepends="libsodium-devel openssl-devel nettle-devel" +build_helper=qemu +hostmakedepends="pkg-config" +makedepends="libsodium-devel openssl-devel" short_desc="Distributed version control system based on patches" maintainer="Toyam Cox " -license="GPL-2.0-only" +license="GPL-2.0-or-later" homepage="https://pijul.org/" -distfiles="https://static.crates.io/crates/pijul/pijul-${version}.crate - https://gitlab.com/sequoia-pgp/sequoia/-/archive/v${_sequoia_ver}/sequoia-v${_sequoia_ver}.tar.gz" -checksum="f92a3f4063e780ca45c161ceb0f42baf34dfeddf3359ebf6c2e0442d9abb5889 - 71823c88b9666611f3cfa6b1d923bd66fda92fa6a53368b195bd2f962fdf7f4b" +distfiles="https://static.crates.io/crates/pijul/pijul-${_crates_version}.crate" +checksum=b7757b1c39487a70d82d5e5f5e432e7d9cf3c24cb837b90cf1c436da8edba802 -post_extract() { - mv pijul-*/* . - mv sequoia-* sequoia -} - -post_patch() { - # Upstream does not ship a lockfile yet - cargo generate-lockfile -} - -# We only want to install the binary, so don't run cargo install -do_install() { - vbin target/${RUST_TARGET}/release/pijul +post_install() { + for shell in bash fish zsh; do + vtargetrun ${DESTDIR}/usr/bin/pijul completion ${shell} > pijul.${shell} + vcompletion pijul.${shell} ${shell} + done } diff --git a/srcpkgs/pijul/update b/srcpkgs/pijul/update deleted file mode 100644 index a305978c946..00000000000 --- a/srcpkgs/pijul/update +++ /dev/null @@ -1 +0,0 @@ -site="https://pijul.org/downloads/"