Date: Monday, May 8, 2023 @ 15:40:45
  Author: dvzrv
Revision: 1459464

upgpkg: sequoia-sq 0.30.0-1: Upgrade to 0.30.0.

Ensure the same target dir in check() as with build().
Adapt package() to install all man pages.

Modified:
  sequoia-sq/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-05-08 15:40:02 UTC (rev 1459463)
+++ PKGBUILD    2023-05-08 15:40:45 UTC (rev 1459464)
@@ -2,9 +2,9 @@
 # Maintainer: David Runge <[email protected]>
 
 pkgname=sequoia-sq
-pkgver=0.29.0
-_commit=bc9bc72fd670eda6bba973352b8053d67b1a180a  # refs/tags/v0.29.0
-pkgrel=3
+pkgver=0.30.0
+_commit=2f3f75e8c2117ae2ff118219dc7a118eb8f52b0b  # refs/tags/v0.30.0
+pkgrel=1
 pkgdesc='Command-line frontends for Sequoia'
 url='https://sequoia-pgp.org/'
 arch=('x86_64')
@@ -18,6 +18,7 @@
   'gmp'
   'nettle' 'libnettle.so' 'libhogweed.so'
   'openssl'
+  'sqlite'
 )
 makedepends=(
   'git'
@@ -50,6 +51,7 @@
 
 check() {
   cd $pkgname
+  export CARGO_TARGET_DIR=../target
   export RUSTUP_TOOLCHAIN=stable
   cargo test --release --frozen --features 'default'
 }
@@ -61,7 +63,9 @@
   install -Dm 644 target/_sq -t "${pkgdir}/usr/share/zsh/site-functions"
   install -Dm 644 target/sq.fish -t 
"${pkgdir}/usr/share/fish/vendor_completions.d"
 
-  install -Dm 644 $pkgname/man-sq/*.1 -t "${pkgdir}/usr/share/man/man1"
+  for manpage in target/release/build/$pkgname-*/out/*.1; do
+    install -Dm 644 $manpage -t "${pkgdir}/usr/share/man/man1/"
+  done
 }
 
 # vim: ts=2 sw=2 et:

Reply via email to