[arch-commits] Commit in (5 files)
Levente Polyak
anthraxx at archlinux.org
Wed Sep 23 22:04:55 UTC 2020
Date: Wednesday, September 23, 2020 @ 22:04:54
Author: anthraxx
Revision: 711607
addpkg: sequoia 0.19.0
Added:
sequoia/
sequoia/repos/
sequoia/trunk/
sequoia/trunk/PKGBUILD
sequoia/trunk/build.patch
-------------+
PKGBUILD | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
build.patch | 13 +++++++++++++
2 files changed, 71 insertions(+)
Added: sequoia/trunk/PKGBUILD
===================================================================
--- sequoia/trunk/PKGBUILD (rev 0)
+++ sequoia/trunk/PKGBUILD 2020-09-23 22:04:54 UTC (rev 711607)
@@ -0,0 +1,58 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Kai Michaelis <kai at sequoia-pgp.org>
+
+pkgbase=sequoia
+pkgname=(sequoia python-sequoia)
+pkgver=0.19.0
+pkgrel=1
+pkgdesc='Cool new OpenPGP implementation'
+url='https://sequoia-pgp.org/'
+arch=('x86_64')
+license=('GPL3')
+makedepends=('git' 'cargo' 'clang' 'python' 'python-setuptools' 'python-cffi'
+ 'glibc' 'nettle' 'sqlite' 'capnproto' 'openssl' 'gcc-libs' 'gmp')
+checkdepends=('python-pytest' 'python-pytest-runner')
+options=('!makeflags')
+source=(${pkgname}::"git+https://gitlab.com/sequoia-pgp/sequoia.git#tag=v${pkgver}"
+ build.patch)
+sha512sums=('SKIP'
+ '44c8f4af25b3a8c42939ea75e87fa90ac42499545b41c3dc6744debf318ecc6361f4aad2692663a0516b9f5a6e1d33435d82a7749cfd2c26c9baf94f5dcb6b09')
+
+prepare() {
+ cd ${pkgname}
+ sed 's/debug/release/g' -i -- */Makefile */*/Makefile */*/*/Makefile
+ sed "s/-L/${LDFLAGS},-L/g" -i ffi/lang/python/Makefile
+ patch -Np1 < ../build.patch
+}
+
+build() {
+ cd ${pkgname}
+ make PREFIX=/usr CARGO_FLAGS='--locked' build-release
+}
+
+check() {
+ cd ${pkgname}
+ cargo test --release --locked \
+ --workspace \
+ --exclude sequoia-store
+ # python tests currently fail horribly
+ # make -C ffi/lang/python test
+}
+
+package_sequoia() {
+ depends=('glibc' 'nettle' 'libhogweed.so' 'libnettle.so' 'sqlite' 'capnproto'
+ 'openssl' 'gcc-libs' 'gmp')
+ 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"*
+}
+
+package_python-sequoia() {
+ depends=('python' 'python-cffi' 'sequoia')
+ pkgdesc+=' - python bindings'
+ cd ${pkgbase}
+ make -C ffi/lang/python DESTDIR="${pkgdir}" PREFIX=/usr install
+}
+
+# vim: ts=2 sw=2 et:
Added: sequoia/trunk/build.patch
===================================================================
--- sequoia/trunk/build.patch (rev 0)
+++ sequoia/trunk/build.patch 2020-09-23 22:04:54 UTC (rev 711607)
@@ -0,0 +1,13 @@
+diff --git a/ffi/Makefile b/ffi/Makefile
+index 3dddfcd4..1feb7b53 100644
+--- a/ffi/Makefile
++++ b/ffi/Makefile
+@@ -62,7 +62,7 @@ build-release:
+ $(CARGO) build $(CARGO_FLAGS) --release --package sequoia-ffi
+ $(MAKE) -Clang/python build-release
+ $(call sequoia_pc,$(CARGO_TARGET_DIR)/release,true)
+- $(MAKE) -C../store install
++ $(MAKE) -C../store build-release
+
+ .PHONY: install
+ install: build-release
More information about the arch-commits
mailing list