summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 02ab87031bc736c15996cc168ff3df462f060f4a (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
# Maintainer: setrofim <setrofim@gmail.com>

_pkgname=wolftpm
pkgname=${_pkgname}-git
pkgver=v2.5.0
pkgrel=1
pkgdesc='Portable TPM 2.0 project designed for embedded use.'
arch=(i686 x86_64)
license=(GPL)
depends=('bash' 'wolfssl')
makedepends=('git')
url='https://www.wolfssl.com/products/wolftpm/'
source=(git+https://github.com/wolfSSL/wolfTPM.git)
sha256sums=('SKIP')

provides=("${_pkgname}")
conflicts=("${_pkgname}")

build() {
  cd wolfTPM
  git checkout $pkgver
  ./autogen.sh
  CFLAGS= ./configure  --prefix=/usr --sysconfdir=/etc \
              --disable-examples
  make
}

package() {
  cd wolfTPM
  make install DESTDIR="$pkgdir"
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$_pkgname/LICENSE
  libtool --finish /usr/lib
}