upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / tpm2-openssl / trunk / PKGBUILD
blobdea594ef52feecc316db3bf03c3e85ca4c1a6f76
1 # Maintainer: Jonas Witschel <diabonas@archlinux.org>
2 pkgname=tpm2-openssl
3 pkgver=1.1.1
4 pkgrel=1
5 pkgdesc='OpenSSL Provider for Trusted Platform Module 2.0 integration'
6 arch=('x86_64')
7 url='https://github.com/tpm2-software/tpm2-openssl'
8 license=('BSD')
9 depends=('openssl' 'tpm2-tss' 'libtss2-esys.so' 'libtss2-rc.so' 'libtss2-tctildr.so')
10 checkdepends=('curl' 'dbus' 'swtpm' 'tpm2-abrmd' 'tpm2-tools')
11 optdepends=('tpm2-abrmd: user space resource manager')
12 source=("$url/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"{,.asc}
13         'tpm2-openssl_check.sh')
14 sha512sums=('be4f114b21d15e6baeb7e756a787619d01f20171e86ebc42ea098c98d59ffd2ba648885b345b9d1a9dc3339199eaa6db8335f039587be338c1126e23349b8812'
15             'SKIP'
16             '08818eb11a2e4f53a6af3c7e2069b04ff5a4d135414a0f7e0dd316abffd9870432fe7f9cd02a2de2f8c99d89862933c8f4af5c76c68834849defc802511290be')
17 validpgpkeys=('BB0C68611BD255F10FD1EE94B7900BECDB740A3B'  # Petr Gotthard <petr.gotthard@centrum.cz>
18               'B7201FE8031B07AF11F5423C6329CFCB6BE6FD76') # Petr Gotthard <petr.gotthard@centrum.cz>
20 build() {
21         cd "$pkgname-$pkgver"
22         ./configure --prefix=/usr
23         make
26 check() {
27         cd "$pkgname-$pkgver"
28         dbus-run-session "$srcdir/tpm2-openssl_check.sh"
31 package() {
32         cd "$pkgname-$pkgver"
33         make DESTDIR="$pkgdir" install
34         install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"