From a501f7a5d1ac578668d45047279d34e91fe6a34b Mon Sep 17 00:00:00 2001 From: John Date: Mon, 4 Oct 2021 22:19:08 +0200 Subject: [PATCH] New package: libtpms-0.9.0 --- common/shlibs | 1 + srcpkgs/libtpms-devel | 1 + srcpkgs/libtpms/template | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 120000 srcpkgs/libtpms-devel create mode 100644 srcpkgs/libtpms/template diff --git a/common/shlibs b/common/shlibs index 8893b343af..09e6a5facd 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3445,6 +3445,7 @@ libcss_parser_pp.so.0 htmlcxx-0.86_1 libcss_parser.so.0 htmlcxx-0.86_1 libaom.so.2 libaom-2.0.0_1 libre.so.1 re-2.0.1_1 +libtpms.so.0 libtpms-0.9.0_1 libspandsp.so.2 spandsp-0.0.6_1 libspa-alsa.so libspa-alsa-0.3.6_1 libspa-audioconvert.so libspa-audioconvert-0.3.6_1 diff --git a/srcpkgs/libtpms-devel b/srcpkgs/libtpms-devel new file mode 120000 index 0000000000..a7b2c51dad --- /dev/null +++ b/srcpkgs/libtpms-devel @@ -0,0 +1 @@ +libtpms \ No newline at end of file diff --git a/srcpkgs/libtpms/template b/srcpkgs/libtpms/template new file mode 100644 index 0000000000..90ae5f6907 --- /dev/null +++ b/srcpkgs/libtpms/template @@ -0,0 +1,33 @@ +# 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 " +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" + } +}