Date: Wednesday, August 4, 2021 @ 00:33:09 Author: anthraxx Revision: 993602
upgpkg: sequoia 1.3.0-2: split sequoia suite Modified: sequoia/trunk/PKGBUILD ----------+ PKGBUILD | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-08-04 00:32:25 UTC (rev 993601) +++ PKGBUILD 2021-08-04 00:33:09 UTC (rev 993602) @@ -2,23 +2,28 @@ # Contributor: Kai Michaelis <[email protected]> pkgbase=sequoia -pkgname=(sequoia python-sequoia) +pkgname=(sequoia-ffi python-sequoia) pkgver=1.3.0 -pkgrel=1 +pkgrel=2 pkgdesc='Cool new OpenPGP implementation' url='https://sequoia-pgp.org/' arch=('x86_64') -license=('GPL3') +license=('GPL2') +groups=('sequoia') makedepends=('git' 'cargo' 'clang' 'python' 'python-setuptools' 'python-cffi' 'glibc' 'nettle' 'sqlite' 'capnproto' 'openssl' 'gcc-libs' 'gmp' - 'bzip2' 'libbz2.so') + 'bzip2' 'libbz2.so' 'libhogweed.so' 'libnettle.so') checkdepends=('python-pytest' 'python-pytest-runner') options=('!makeflags') -source=(${pkgname}::"git+https://gitlab.com/sequoia-pgp/sequoia.git#tag=openpgp/v${pkgver}") +source=(sequoia::"git+https://gitlab.com/sequoia-pgp/sequoia.git#tag=openpgp/v${pkgver}?signed") sha512sums=('SKIP') +validpgpkeys=( + D2F2C5D45BE9FDE6A4EE0AAF31855247603831FD # [email protected] + CBCD8F030588653EEDD7E2659B7DD433F254904A # [email protected] +) prepare() { - cd ${pkgname} + 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 @@ -25,12 +30,12 @@ } build() { - cd ${pkgname} + cd ${pkgbase} make PREFIX=/usr CARGO_FLAGS='--locked' build-release } check() { - cd ${pkgname} + cd ${pkgbase} cargo test --release --locked \ --workspace \ --exclude sequoia-store @@ -38,7 +43,8 @@ # make -C ffi/lang/python test } -package_sequoia() { +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} @@ -45,10 +51,11 @@ 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') + depends=('python' 'python-cffi' 'sequoia-ffi') pkgdesc+=' - python bindings' cd ${pkgbase} make -C ffi/lang/python DESTDIR="${pkgdir}" PREFIX=/usr install
