summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 043dd5b2896603762623260b51bf50d18b3fe38f (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
# Maintainer: Johannes Holland <joh.ho@gmx.de>
pkgname=python-tpm2-gui-git
_name=${pkgname#python-}
pkgver=0.0.1.r1.2ea1ef7
pkgrel=1
pkgdesc='GUI for the TPM Software Stack (TSS) Feature API (FAPI)'
arch=('any')
url='https://github.com/joholl/tpm2-gui'
license=('BSD')
depends=('python' 'gtk3' 'gobject-introspection-runtime' 'gdk-pixbuf2' 'pango'
         'json-c' 'python-tpm2-pytss-git' 'python-gobject'
		 'python-cryptography')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=('tpm2-gui-git')
source=("git+$url.git")
sha512sums=('SKIP')

pkgver() {
	cd "${_name%-git}"
	git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
}

build() {
	cd "${_name%-git}"
	python setup.py build
}

check() {
	cd "${_name%-git}"
	python -B setup.py test
}

package() {
	cd "${_name%-git}"
	python setup.py install --root="$pkgdir" --optimize=1
	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}