void-packages/srcpkgs/libtpms/template

34 lines
884 B
Bash
Raw Normal View History

2021-10-04 20:19:08 +00:00
# Template file for 'libtpms'
pkgname=libtpms
version=0.9.0
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=bcd94c8880c471358c58db89be30420384ca0ef50a0048da8d04352841d1e2fb
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"
}
}