[arch-commits] Commit in (4 files)
Jonas Witschel
diabonas at archlinux.org
Thu Apr 9 08:04:53 UTC 2020
Date: Thursday, April 9, 2020 @ 08:04:52
Author: diabonas
Revision: 612987
Update TPM2 PKGBUILD style to match the rest of my packages
Modified:
ibm-sw-tpm2/trunk/PKGBUILD
tpm2-abrmd/trunk/PKGBUILD
tpm2-tools/trunk/PKGBUILD
tpm2-tss/trunk/PKGBUILD
----------------------------+
ibm-sw-tpm2/trunk/PKGBUILD | 25 +++++++++++------------
tpm2-abrmd/trunk/PKGBUILD | 43 ++++++++++++++++++++---------------------
tpm2-tools/trunk/PKGBUILD | 39 ++++++++++++++++++-------------------
tpm2-tss/trunk/PKGBUILD | 45 +++++++++++++++++++++----------------------
4 files changed, 74 insertions(+), 78 deletions(-)
Modified: ibm-sw-tpm2/trunk/PKGBUILD
===================================================================
--- ibm-sw-tpm2/trunk/PKGBUILD 2020-04-09 08:01:15 UTC (rev 612986)
+++ ibm-sw-tpm2/trunk/PKGBUILD 2020-04-09 08:04:52 UTC (rev 612987)
@@ -1,30 +1,29 @@
# Maintainer: Jonas Witschel <diabonas at archlinux.org>
# Contributor: Bruno Pagani <archange at archlinux.org>
-
pkgname=ibm-sw-tpm2
pkgver=1563
pkgrel=1
-pkgdesc="An implementation of the TCG TPM 2.0 specification by IBM"
-arch=(x86_64)
-url="https://sourceforge.net/projects/ibmswtpm2/"
+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")
+source=("https://downloads.sourceforge.net/${pkgname//-}/ibmtpm$pkgver.tar.gz")
sha512sums=('ff0b9e5f0d0070eb572b23641f7a0e70a8bc65cbf4b59dca1778be3bb014124011221a492147d4c492584e87af23e2f842ca6307641b3919f67a3f27f09312c0')
prepare() {
- sed -e 's:$(CCFLAGS):& $(CFLAGS):' \
- -e 's:$(LNFLAGS):& $(LDFLAGS):' \
- -e 's:-Werror ::' -e 's:-ggdb -O0::' \
- -i src/makefile
+ sed -e 's|$(CCFLAGS)|& $(CFLAGS)|' \
+ -e 's|$(LNFLAGS)|& $(LDFLAGS)|' \
+ -e 's|-Werror ||' -e 's|-ggdb -O0||' \
+ -i src/makefile
}
build() {
- cd src
- make
+ cd src
+ make
}
package() {
- install -Dm755 src/tpm_server -t "${pkgdir}"/usr/bin/
- install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+ install -Dm755 src/tpm_server -t "$pkgdir/usr/bin"
+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
Modified: tpm2-abrmd/trunk/PKGBUILD
===================================================================
--- tpm2-abrmd/trunk/PKGBUILD 2020-04-09 08:01:15 UTC (rev 612986)
+++ tpm2-abrmd/trunk/PKGBUILD 2020-04-09 08:04:52 UTC (rev 612987)
@@ -1,38 +1,37 @@
# Maintainer: Jonas Witschel <diabonas at archlinux.org>
# Contributor: Bruno Pagani <archange at archlinux.org>
-
pkgname=tpm2-abrmd
pkgver=2.3.1
pkgrel=1
-pkgdesc="Trusted Platform Module 2.0 Access Broker and Resource Management Daemon"
-arch=(x86_64)
-url="https://github.com/tpm2-software/tpm2-abrmd"
-license=(BSD)
-depends=(dbus glib2 tpm2-tss)
-checkdepends=(cmocka ibm-sw-tpm2 iproute2)
-source=("${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz"{,.asc})
+pkgdesc='Trusted Platform Module 2.0 Access Broker and Resource Management Daemon'
+arch=('x86_64')
+url='https://github.com/tpm2-software/tpm2-abrmd'
+license=('BSD')
+depends=('dbus' 'glib2' 'tpm2-tss')
+checkdepends=('cmocka' 'ibm-sw-tpm2' 'iproute2')
+source=("$url/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"{,.asc})
sha512sums=('144ab2b147cd18f892f3c05181efdbed2ac422fe8507eb42871ffe571340b6395431743a4f1995a7ce7a914fd5e7afd2b17328062c893a0403708c2c4d92e0cb'
'SKIP')
-validpgpkeys=(42007E876F248E04A3F2FE25AE4548D043DEC7C3) # Philip Tricca <philip.b.tricca at intel.com>
+validpgpkeys=('42007E876F248E04A3F2FE25AE4548D043DEC7C3') # Philip Tricca <philip.b.tricca at intel.com>
build() {
- cd ${pkgname}-${pkgver}
- ./configure \
- --prefix=/usr \
- --sbindir=/usr/bin \
- --with-dbuspolicydir=/usr/share/dbus-1/system.d \
- $( ((CHECKFUNC)) && echo --enable-unit --enable-integration)
- make
+ cd "$pkgname-$pkgver"
+ ./configure \
+ --prefix=/usr \
+ --sbindir=/usr/bin \
+ --with-dbuspolicydir=/usr/share/dbus-1/system.d \
+ $( ((CHECKFUNC)) && echo --enable-unit --enable-integration)
+ make
}
check() {
- cd ${pkgname}-${pkgver}
- make check
+ cd "$pkgname-$pkgver"
+ make check
}
package() {
- cd ${pkgname}-${pkgver}
- make DESTDIR="${pkgdir}" install
- rm -r "${pkgdir}"/usr/lib/systemd/system-preset
- install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+ cd "$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+ rm -r "$pkgdir/usr/lib/systemd/system-preset"
+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
Modified: tpm2-tools/trunk/PKGBUILD
===================================================================
--- tpm2-tools/trunk/PKGBUILD 2020-04-09 08:01:15 UTC (rev 612986)
+++ tpm2-tools/trunk/PKGBUILD 2020-04-09 08:04:52 UTC (rev 612987)
@@ -1,37 +1,36 @@
# Maintainer: Jonas Witschel <diabonas at archlinux.org>
# Contributor: Bruno Pagani <archange at archlinux.org>
-
pkgname=tpm2-tools
pkgver=4.1.1
pkgrel=1
-pkgdesc="Trusted Platform Module 2.0 tools based on tpm2-tss"
-arch=(x86_64)
-url="https://github.com/tpm2-software/tpm2-tools"
-license=(BSD)
-depends=(curl openssl tpm2-tss)
+pkgdesc='Trusted Platform Module 2.0 tools based on tpm2-tss'
+arch=('x86_64')
+url='https://github.com/tpm2-software/tpm2-tools'
+license=('BSD')
+depends=('curl' 'openssl' 'tpm2-tss')
optdepends=('tpm2-abrmd: user space resource manager')
-checkdepends=(cmocka ibm-sw-tpm2 iproute2 python-yaml tpm2-abrmd xxd)
-source=("$url/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz"{,.asc})
+checkdepends=('cmocka' 'ibm-sw-tpm2' 'iproute2' 'python-yaml' 'tpm2-abrmd' 'xxd')
+source=("$url/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"{,.asc})
sha512sums=('25952cf947f0acd16b1a8dbd3ac8573bce85ff970a7e24c290c4f9cd29418e77a3e48ac82c932fbd250887a9303ab301ff92db594c2fffaba47b873382444d26'
'SKIP')
-validpgpkeys=(5B482B8E3E19DA7C978E1D016DE2E9078E1F50C1 # William Roberts (Bill Roberts) <william.c.roberts at intel.com>
- 6313E6DC41AAFC315A8760A414986F6944B1F72B) # Desai, Imran (idesai-github-gpg) <imran.desai at intel.com>
+validpgpkeys=('5B482B8E3E19DA7C978E1D016DE2E9078E1F50C1' # William Roberts (Bill Roberts) <william.c.roberts at intel.com>
+ '6313E6DC41AAFC315A8760A414986F6944B1F72B') # Desai, Imran (idesai-github-gpg) <imran.desai at intel.com>
build() {
- cd ${pkgname}-${pkgver}
- ./configure \
- --sysconfdir=/etc \
- --prefix=/usr $( ((CHECKFUNC)) && echo --enable-unit)
- make
+ cd "$pkgname-$pkgver"
+ ./configure \
+ --sysconfdir=/etc \
+ --prefix=/usr $( ((CHECKFUNC)) && echo --enable-unit)
+ make
}
check() {
- cd ${pkgname}-${pkgver}
- make check
+ cd "$pkgname-$pkgver"
+ make check
}
package() {
- cd ${pkgname}-${pkgver}
- make DESTDIR="${pkgdir}" install
- install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+ cd "$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
Modified: tpm2-tss/trunk/PKGBUILD
===================================================================
--- tpm2-tss/trunk/PKGBUILD 2020-04-09 08:01:15 UTC (rev 612986)
+++ tpm2-tss/trunk/PKGBUILD 2020-04-09 08:04:52 UTC (rev 612987)
@@ -1,42 +1,41 @@
# Maintainer: Jonas Witschel <diabonas at archlinux.org>
# Contributor: Bruno Pagani <archange at archlinux.org>
-
pkgname=tpm2-tss
pkgver=2.4.0
pkgrel=1
-pkgdesc="Implementation of the TCG Trusted Platform Module 2.0 Software Stack (TSS2)"
-arch=(x86_64)
-url="https://github.com/tpm2-software/tpm2-tss"
-license=(BSD)
-depends=(curl openssl)
-makedepends=(doxygen)
-checkdepends=(cmocka ibm-sw-tpm2 iproute2 procps-ng uthash)
+pkgdesc='Implementation of the TCG Trusted Platform Module 2.0 Software Stack (TSS2)'
+arch=('x86_64')
+url='https://github.com/tpm2-software/tpm2-tss'
+license=('BSD')
+depends=('curl' 'openssl')
+makedepends=('doxygen')
+checkdepends=('cmocka' 'ibm-sw-tpm2' 'iproute2' 'procps-ng' 'uthash')
backup=('etc/tpm2-tss/fapi-config.json'
'etc/tpm2-tss/fapi-profiles/P_ECCP256SHA256.json'
'etc/tpm2-tss/fapi-profiles/P_RSA2048SHA256.json')
-source=("${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz"{,.asc})
+source=("$url/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"{,.asc})
sha512sums=('763370381584f2124f751f0736e6a8b34428fd52134fd9966f3581e128f3b74b3f1261992f5d6162d7c866e47f7e5519ea80c1d1d39b80d5ed6e067eb2cd35a0'
'SKIP')
-validpgpkeys=(D760B790CCF0A41CBE7B047C316CC1FB24ABDC72 # Tadeusz Struk <tadeusz.struk at intel.com>
- D6B4D8BAC7E0CC97DCD4AC7272E88B53F7A95D84 # Andreas Fuchs <andreas.fuchs at sit.fraunhofer.de>
- 5B482B8E3E19DA7C978E1D016DE2E9078E1F50C1) # William Roberts (Bill Roberts) <william.c.roberts at intel.com>
+validpgpkeys=('D760B790CCF0A41CBE7B047C316CC1FB24ABDC72' # Tadeusz Struk <tadeusz.struk at intel.com>
+ 'D6B4D8BAC7E0CC97DCD4AC7272E88B53F7A95D84' # Andreas Fuchs <andreas.fuchs at sit.fraunhofer.de>
+ '5B482B8E3E19DA7C978E1D016DE2E9078E1F50C1') # William Roberts (Bill Roberts) <william.c.roberts at intel.com>
build() {
- cd ${pkgname}-${pkgver}
- ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
- --with-runstatedir=/run --with-sysusersdir=/usr/lib/sysusers.d \
- --with-tmpfilesdir=/usr/lib/tmpfiles.d --with-udevrulesprefix=60- \
- $( ((CHECKFUNC)) && echo --enable-unit --enable-integration)
- make
+ cd "$pkgname-$pkgver"
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --with-runstatedir=/run --with-sysusersdir=/usr/lib/sysusers.d \
+ --with-tmpfilesdir=/usr/lib/tmpfiles.d --with-udevrulesprefix=60- \
+ $( ((CHECKFUNC)) && echo --enable-unit --enable-integration)
+ make
}
check() {
- cd ${pkgname}-${pkgver}
- make check
+ cd "$pkgname-$pkgver"
+ make check
}
package() {
- cd ${pkgname}-${pkgver}
- make DESTDIR="${pkgdir}" install
- install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+ cd "$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}
More information about the arch-commits
mailing list