From ac704110fc88ea2f417d3b12ab1753c0ce09e2eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 27 Oct 2022 18:59:11 +0700 Subject: [PATCH] pijul: use create_wrksrc --- srcpkgs/pijul/patches/bindgen.patch | 2 +- srcpkgs/pijul/template | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/srcpkgs/pijul/patches/bindgen.patch b/srcpkgs/pijul/patches/bindgen.patch index 04ccc8381aa..f76431e4e33 100644 --- a/srcpkgs/pijul/patches/bindgen.patch +++ b/srcpkgs/pijul/patches/bindgen.patch @@ -6,4 +6,4 @@ version = "0.2" + +[patch.crates-io] -+"sequoia-rfc2822" = {path = '/builddir/sequoia-v0.9.0/rfc2822'} ++"sequoia-rfc2822" = {path = './sequoia/rfc2822'} diff --git a/srcpkgs/pijul/template b/srcpkgs/pijul/template index 53fb1c83ebe..a6a6d048b1e 100644 --- a/srcpkgs/pijul/template +++ b/srcpkgs/pijul/template @@ -2,6 +2,7 @@ pkgname=pijul version=0.12.2 revision=5 +create_wrksrc=yes build_style=cargo _sequoia_ver=0.9.0 hostmakedepends="pkg-config clang" @@ -15,6 +16,11 @@ distfiles="https://crates.io/api/v1/crates/pijul/${version}/download>pijul-${ver checksum="f92a3f4063e780ca45c161ceb0f42baf34dfeddf3359ebf6c2e0442d9abb5889 71823c88b9666611f3cfa6b1d923bd66fda92fa6a53368b195bd2f962fdf7f4b" +post_extract() { + mv pijul-*/* . + mv sequoia-* sequoia +} + # We only want to install the binary, so don't run cargo install do_install() { vbin target/${RUST_TARGET}/release/pijul