1# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
2# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
3pkgname="lineage-verifier"
4_commit="0c65c4f13c489e18b9cf6be9c11f54794217ae5a"
5pkgver=20190408
6pkgrel=1
7pkgdesc="Tool for verifying lineage build authenticity"
8url="https://github.com/LineageOS/update_verifier"
9arch="noarch"
10license="Apache-2.0"
11depends="py3-oscrypto python3"
12options="!check" # upstream doesn't have a testsuite
13source="$pkgname-$pkgver.tar.gz::https://github.com/LineageOS/update_verifier/archive/$_commit.tar.gz
14 0001-Make-public-key-an-optional-argument-with-a-default-.patch"
15builddir="$srcdir/update_verifier-$_commit"
16
17build() {
18 dos2unix update_verifier.py
19 echo "#!/usr/bin/env python3" > $pkgname.in
20 cat $pkgname.in update_verifier.py > $pkgname
21}
22
23package() {
24 install -Dm644 lineageos_pubkey \
25 "$pkgdir"/usr/share/$pkgname/pubkey
26 install -Dm755 $pkgname \
27 "$pkgdir"/usr/bin/$pkgname
28}
29
30sha512sums="db4ef3e916ebfdd62324e654ad75a2e9538820c76148ca7bd7404d37f7ce42edc64d4aed9126f32be4a65f995049b2fbd4c28d9590e8065533127d57ca5bc1f8 lineage-verifier-20190408.tar.gz
3188675f34e4ad4df95a2e35fc6dafafb485fec4f66c476bb47f16362df96b176c32d115277ba991134a327794dcd595ed42f8872963a96dad50e949188d806954 0001-Make-public-key-an-optional-argument-with-a-default-.patch"