blob: 03a1f96df20aba28995510ab5f55e73f82fa36df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Contributor: tcely <sequoia-sqv+aports@tcely.33mail.com>
# Maintainer:
_project="sequoia"
pkgname=$_project-sqv
pkgver=0.9.0
pkgrel=5
pkgdesc="simple signature verification program"
url="https://sequoia-pgp.org/"
arch="armhf armv7 x86_64" # limited by cargo
license="GPL-3.0-or-later"
makedepends="capnproto-dev cargo clang-dev nettle-dev openssl-dev>3
py3-cffi py3-pytest py3-setuptools python3-dev sqlite-dev"
source="https://gitlab.com/$_project-pgp/$_project/-/archive/v$pkgver/$_project-v$pkgver.tar.gz
"
builddir="$srcdir/$_project-v$pkgver"
_cargo_env() {
cd "$builddir"
CARGO_TARGET_DIR="$PWD/target"
export CARGO_TARGET_DIR
SQV="$CARGO_TARGET_DIR/release/sqv"
export SQV
}
build() {
_cargo_env
# Detect mismatching versions from upstream
sed -i.orig -e '/^version =/s/=.*$/= "'"$pkgver"'"/' sqv/Cargo.toml
diff -us sqv/Cargo.toml.orig sqv/Cargo.toml
make -C sqv build-release CARGO_FLAGS='--locked'
}
check() {
_cargo_env
cd sqv && cargo test --locked --release --package "$pkgname"
"$SQV" --version
}
package() {
_cargo_env
make DESTDIR="$pkgdir" -C sqv install
}
sha512sums="2349f6f12b9b20761729ba927d08d6090f0c697c2a103eaf403a5694e4303573c45c5247ebc30c080a885916f026e9618ffa979f84f0dcb055377e62a78be4ee sequoia-v0.9.0.tar.gz"
|