34 lines
884 B
Bash
34 lines
884 B
Bash
# Template file for 'libtpms'
|
|
pkgname=libtpms
|
|
version=0.9.6
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="libtool automake pkg-config"
|
|
makedepends="openssl-devel"
|
|
short_desc="Software emulation of a Trusted Platform Module (TPM 1.2 and TPM 2.0)"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="BSD-3-Clause, custom:IBM"
|
|
homepage="https://github.com/stefanberger/libtpms"
|
|
distfiles="https://github.com/stefanberger/libtpms/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=2807466f1563ebe45fdd12dd26e501e8a0c4fbb99c7c428fbb508789efd221c0
|
|
|
|
pre_configure() {
|
|
autoreconf -f -i
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
libtpms-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} openssl-devel"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/share/man/man3
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|