[arch-commits] Commit in sequoia/repos (2 files)

Frederik Schwan freswa at gemini.archlinux.org
Wed Oct 6 15:27:25 UTC 2021


    Date: Wednesday, October 6, 2021 @ 15:27:25
  Author: freswa
Revision: 1027858

archrelease: copy trunk to community-testing-x86_64

Added:
  sequoia/repos/community-testing-x86_64/
  sequoia/repos/community-testing-x86_64/PKGBUILD
    (from rev 1027857, sequoia/trunk/PKGBUILD)

----------+
 PKGBUILD |   64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)

Copied: sequoia/repos/community-testing-x86_64/PKGBUILD (from rev 1027857, sequoia/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-10-06 15:27:25 UTC (rev 1027858)
@@ -0,0 +1,64 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Kai Michaelis <kai at sequoia-pgp.org>
+
+pkgbase=sequoia
+pkgname=(sequoia-ffi python-sequoia)
+pkgver=1.4.0
+pkgrel=1
+pkgdesc='Cool new OpenPGP implementation'
+url='https://sequoia-pgp.org/'
+arch=('x86_64')
+license=('GPL2')
+groups=('sequoia')
+makedepends=('git' 'cargo' 'clang' 'python' 'python-setuptools' 'python-cffi'
+             'glibc' 'nettle' 'sqlite' 'capnproto' 'openssl' 'gcc-libs' 'gmp'
+             'bzip2' 'libbz2.so' 'libhogweed.so' 'libnettle.so')
+checkdepends=('python-pytest' 'python-pytest-runner')
+options=('!makeflags')
+source=(sequoia::"git+https://gitlab.com/sequoia-pgp/sequoia.git#tag=openpgp/v${pkgver}?signed")
+sha512sums=('SKIP')
+validpgpkeys=(
+  D2F2C5D45BE9FDE6A4EE0AAF31855247603831FD # justus at sequoia-pgp.org
+  CBCD8F030588653EEDD7E2659B7DD433F254904A # justus at sequoia-pgp.org
+)
+
+prepare() {
+  cd ${pkgbase}
+  sed 's/debug/release/g' -i -- */Makefile */*/Makefile */*/*/Makefile
+  sed "s/-L/${LDFLAGS},-L/g" -i ffi/lang/python/Makefile
+  ln -s .Makefile Makefile
+}
+
+build() {
+  cd ${pkgbase}
+  make PREFIX=/usr CARGO_FLAGS='--locked' build-release
+}
+
+check() {
+  cd ${pkgbase}
+  cargo test --release --locked \
+    --workspace \
+    --exclude sequoia-store
+  # python tests currently fail horribly
+  # make -C ffi/lang/python test
+}
+
+package_sequoia-ffi() {
+  pkgdesc='C API for Sequoia'
+  depends=('glibc' 'nettle' 'libhogweed.so' 'libnettle.so' 'sqlite' 'capnproto'
+           'openssl' 'gcc-libs' 'gmp' 'bzip2' 'libbz2.so')
+  cd ${pkgbase}
+  make DESTDIR="${pkgdir}" PREFIX=/usr CARGO_FLAGS='--locked' install
+  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  rm -rf "${pkgdir}/usr/lib/python"*
+  rm -rf "${pkgdir}"{/usr/share/bash-completion/,/usr/share/zsh/,/usr/share/fish/,/usr/bin/}
+}
+
+package_python-sequoia() {
+  depends=('python' 'python-cffi' 'sequoia-ffi')
+  pkgdesc+=' - python bindings'
+  cd ${pkgbase}
+  make -C ffi/lang/python DESTDIR="${pkgdir}" PREFIX=/usr install
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list