[arch-commits] Commit in (4 files)

Bruno Pagani archange at archlinux.org
Sat Jan 12 18:54:04 UTC 2019


    Date: Saturday, January 12, 2019 @ 18:54:03
  Author: archange
Revision: 422734

Initial addition of ibm-sw-tpm2 to [community]

Required as checkdep of several tpm projects.

Added:
  ibm-sw-tpm2/
  ibm-sw-tpm2/repos/
  ibm-sw-tpm2/trunk/
  ibm-sw-tpm2/trunk/PKGBUILD

----------+
 PKGBUILD |   29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

Added: ibm-sw-tpm2/trunk/PKGBUILD
===================================================================
--- ibm-sw-tpm2/trunk/PKGBUILD	                        (rev 0)
+++ ibm-sw-tpm2/trunk/PKGBUILD	2019-01-12 18:54:03 UTC (rev 422734)
@@ -0,0 +1,29 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=ibm-sw-tpm2
+pkgver=1332
+pkgrel=1
+pkgdesc="An implementation of the TCG TPM 2.0 specification by IBM"
+arch=(x86_64)
+url="https://sourceforge.net/projects/ibmswtpm2/"
+license=('BSD')
+depends=('openssl')
+source=("https://downloads.sourceforge.net/${pkgname//-}/ibmtpm${pkgver}.tar.gz")
+sha256sums=('8e8193af3d11d9ff6a951dda8cd1f4693cb01934a8ad7876b84e92c6148ab0fd')
+
+prepare() {
+    sed -e 's:$(CCFLAGS):& $(CFLAGS):' \
+        -e 's:$(LNFLAGS):& $(LDFLAGS):' \
+        -e 's:-Werror ::' -e 's:-ggdb -O0::' \
+        -i src/makefile
+}
+
+build() {
+    cd src
+    make
+}
+
+package() {
+    install -Dm755 src/tpm_server -t "${pkgdir}"/usr/bin/
+    install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}



More information about the arch-commits mailing list