aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-07-17 05:26:17 -0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-07-17 10:43:23 +0200
commit08b8bd25aaa87ed087affa15e039d4e7ffa5e3ca (patch)
tree60f269653b2d1f06686484b2fe002b96af2ceb31
parent01d840955085f7754aa382c6f7b0987153014fce (diff)
downloadaports-08b8bd25aaa87ed087affa15e039d4e7ffa5e3ca.tar.gz
aports-08b8bd25aaa87ed087affa15e039d4e7ffa5e3ca.tar.bz2
aports-08b8bd25aaa87ed087affa15e039d4e7ffa5e3ca.tar.xz
main/keyutils: link libkeyutils.so to ../../lib/libkeyutils.so.1
Fixes https://gitlab.alpinelinux.org/alpine/aports/issues/10662
-rw-r--r--main/keyutils/APKBUILD12
1 files changed, 8 insertions, 4 deletions
diff --git a/main/keyutils/APKBUILD b/main/keyutils/APKBUILD
index a1f1de7294..ad3a7dc4c9 100644
--- a/main/keyutils/APKBUILD
+++ b/main/keyutils/APKBUILD
@@ -2,16 +2,14 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=keyutils
pkgver=1.6
-pkgrel=0
+pkgrel=1
pkgdesc="Linux Key Management Utilities"
url="http://people.redhat.com/~dhowells/keyutils/"
arch="all"
options="!check" # Test suite requires RPM.
license="GPL-2.0-or-later LGPL-2.0-or-later"
-depends=""
makedepends="file linux-headers"
-install=""
-subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
+subpackages="$pkgname-dev:_dev $pkgname-doc $pkgname-libs"
source="https://people.redhat.com/~dhowells/keyutils/keyutils-$pkgver.tar.bz2"
build() {
@@ -40,4 +38,10 @@ libs() {
mv "$pkgdir"/lib "$subpkgdir"/
}
+_dev() {
+ # Fix for #10662
+ ln -fs ../../lib/libkeyutils.so.1 "$pkgdir"/usr/lib/libkeyutils.so
+ default_dev
+}
+
sha512sums="ee50da165099ea26904066d24b27c5165cb1eb78df6768cba3a534aa318a5c8d926ec6e5322a38c8cedaa768cd79bdcb26ef918aa8447df2e5dfbbe7b8f200ff keyutils-1.6.tar.bz2"