blob: fec04b23438d17420df712383d756d3904cdca10 (
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
|
# Maintainer: Simon Brand <simon.brand@postadigitale.de>
pkgname=cryptographic-id-rs
pkgver=0.3.0
pkgrel=1
protocol_ver=0.2.0
pkgdesc='Attest the trustworthiness of a device against a human using asymmetric cryptography'
arch=('x86_64')
url='https://gitlab.com/cryptographic_id/cryptographic-id-rs'
license=(MIT)
depends=(coreutils openssl tpm2-tools util-linux systemd)
makedepends=(cargo clang pkg-config protobuf rust v4l-utils)
checkdepends=(shellcheck)
backup=('etc/cryptographic_id/initramfs/font')
optdepends=(
'age: encrypted keys with age'
'kbd: change console-font for qr-codes'
)
source=(
"${pkgname}-${pkgver}.tar.gz::https://gitlab.com/cryptographic_id/cryptographic-id-rs/-/archive/v${pkgver}/cryptographic-id-rs-v${pkgver}.tar.gz"
"${pkgname}-proto-${protocol_ver}.tar.gz::https://gitlab.com/cryptographic_id/cryptographic-id-protocol/-/archive/v${protocol_ver}/cryptographic-id-protocol-v${protocol_ver}.tar.gz"
)
sha512sums=('d216b5b58bc79d4da29e06a5127d9b6d7b3d0f44c4777b62bdb217c190567a9fc10fec68f2d22c3ce5187876f9507afd9b2c93c421c97f3e9de77379052271ee'
'35263ae6d8745022f9a9fab98543459c6977d930cc54a92fe53e149f9b58af798908745696e142f0c7a997d0c9548d6cad408efcc8182fd736a567c76c98f6d0')
b2sums=('28efbe8b46a2c0e43711b1001896027bbc9b40505a4513c0d320e63507a068dbf6b6c56e28280fcd966bfd2d1aa69696767834308c33beba9499cf0799dc392d'
'14daf4540eb8648b5d14c7b1338cc6d29d0e21bc8794416aaea25c5ae26ab2a159eac582c35e9dd40fab6d99c9a2f8aaf6ab597705737a947bdaec4d54ac3474')
prepare() {
cp "cryptographic-id-protocol-v${protocol_ver}"/* "${pkgname}-v${pkgver}/src/cryptographic-id-protocol/"
cd "${pkgname}-v${pkgver}"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd "${pkgname}-v${pkgver}"
cargo build --release --frozen
}
check() {
cd "${pkgname}-v${pkgver}"
shellcheck usr/bin/* usr/lib/cryptographic_id/* usr/lib/initcpio/install/cryptographic-id \
usr/lib/dracut/modules.d/90cryptographic-id/module-setup.sh
}
package() {
cd "${pkgname}-v${pkgver}"
make install DESTDIR="${pkgdir}"
}
|