void-packages/srcpkgs/libtpms/template

34 lines
884 B
Bash

# Template file for 'libtpms'
pkgname=libtpms
version=0.9.4
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=61d6f947a60686ec98e7cc5861f0999bd6cdaa1fc2b8901b8dc68d1a715b35cf
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"
}
}