void-packages/srcpkgs/libtpms/template

34 lines
884 B
Bash

# Template file for 'libtpms'
pkgname=libtpms
version=0.9.5
revision=2
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=9522c69001e46a3b0e1ccd646d36db611b2366c395099d29037f2b067bf1bc60
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"
}
}