From 6d263bc5d55f5a4e25318c7b58aa55b652f24d16 Mon Sep 17 00:00:00 2001 From: Leo Date: Thu, 4 Jun 2020 12:08:50 -0300 Subject: community/tpm2-tss: move solinks required at run-time back See !8841 --- community/tpm2-tss/APKBUILD | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/community/tpm2-tss/APKBUILD b/community/tpm2-tss/APKBUILD index f11fee4fa8..b32ff279a4 100644 --- a/community/tpm2-tss/APKBUILD +++ b/community/tpm2-tss/APKBUILD @@ -3,7 +3,7 @@ # Maintainer: Alexander Sack pkgname=tpm2-tss pkgver=2.4.1 -pkgrel=0 +pkgrel=1 pkgdesc="TPM 2.0 TSS" url="https://github.com/tpm2-software/tpm2-tss/" arch="all" @@ -55,6 +55,21 @@ package() { rm -rf "$pkgdir"/etc/sysusers.d } +dev() { + depends_dev=" + $pkgname-tcti-device=$pkgver-r$pkgrel + $pkgname-tcti-mssim=$pkgver-r$pkgrel + " + + default_dev + + # Unfortunately these libraries need their solink to be in the subpackage + # and not in the -dev package, so add the dependency to depends_dev and + # move the library back + mv "$subpkgdir"/usr/lib/libtss2-tcti-device.so "$pkgdir"/usr/lib + mv "$subpkgdir"/usr/lib/libtss2-tcti-mssim.so "$pkgdir"/usr/lib +} + mu() { pkgdesc="TPM 2.0 Marshaling libraries" mkdir -p "$subpkgdir"/usr/lib -- cgit v1.2.3