void-packages/srcpkgs/libtpms/template
2021-12-29 14:17:23 +01:00

33 lines
884 B
Bash

# Template file for 'libtpms'
pkgname=libtpms
version=0.9.1
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=9a4d1ed07b78142c394faad1a1481771d470048f5859e80593fe42c82e5635a5
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"
}
}