archrelease: copy trunk to community-any
[arch-community.git] / in-toto / trunk / PKGBUILD
blobb22aa6ef7acc38b606cafbfb7184d01a93254239
1 # Maintainer: Santiago Torres-Arias <santiago@archlinux.org>
3 pkgname=('in-toto')
4 pkgver=1.2.0
5 pkgrel=3
6 pkgdesc="A framework to secure your software supply chain"
7 arch=('any')
8 license=('Apache')
9 url="https://in-toto.io"
10 depends=('python-cryptography'
11     'python-securesystemslib>=0.12.0'
12     'python-iso8601'
13     'python-attrs'
14     'python-dateutil'
15     'python-six'
16     'python-pathspec')
17 optdepends=("gnupg: pgp signing/verification")
18 makedepends=('python' 'python-setuptools' 'git')
19 checkdepends=('python-mock')
20 source=("git+https://github.com/${pkgname}/${pkgname}.git?signed#tag=v${pkgver}")
22 sha256sums=('SKIP')
23             #'08f71105fadba06c95d847199e28167b409208317f2866e20b8ecb5b193f490b')
25 validpgpkeys=("903BAB73640EB6D65533EFF3468F122CE8162295"
26     # Santiago Torres-Arias (upstream co-maintainer)
27     "8BA69B87D43BE294F23E812089A2AD3C07D962E8"
28     # Lukas Puehringher (upstream maintainer)
29     "E32941299CB8C0D93DCF27ACB83110D012545604"
30     # Aditya Saky (Upstream maintainer)
31     )
33 prepare() {
34     cd "${srcdir}/${pkgname}"
35     #patch -Np1 -i "${srcdir}/py310.patch"
38 build() {
39     cd "${srcdir}/${pkgname}"
41     python setup.py build
44 package() {
45     cd "${srcdir}/${pkgname}"
46     python setup.py install --root="$pkgdir" --optimize=1
47     install -D -m644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
50 check() {
51     cd "${srcdir}/${pkgname}"
52     python tests/runtests.py