summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartchus2020-01-18 12:17:51 +0100
committerMartchus2020-01-18 12:17:51 +0100
commit7f6376fe2a0e9952a7f6befd72f66197b7316a06 (patch)
tree64bdd1db1c0efd7bea835f7245229f6c88434348
parent3593a2107556998ed17001631792d1ccf8149a54 (diff)
downloadaur-7f6376fe2a0e9952a7f6befd72f66197b7316a06.tar.gz
Add symlinks for suffixed dynamic libs
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 7 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index dea5ed3a568..ee2f7192d64 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = android-armv7a-eabi-openssl
pkgdesc = The Open Source toolkit for Secure Sockets Layer and Transport Layer Security (Android, armv7a-eabi)
pkgver = 1.1.1.d
- pkgrel = 2
+ pkgrel = 3
url = https://www.openssl.org
arch = any
license = custom:BSD
diff --git a/PKGBUILD b/PKGBUILD
index 61983928a1e..ca1b400abc6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,7 @@ _ver=1.1.1d
pkgname=android-$_pkg_arch-$_pkgname
# use a pacman compatible version scheme
pkgver=${_ver/[a-z]/.${_ver//[0-9.]/}}
-pkgrel=2
+pkgrel=3
pkgdesc="The Open Source toolkit for Secure Sockets Layer and Transport Layer Security (Android, $_pkg_arch)"
arch=('any')
url='https://www.openssl.org'
@@ -72,6 +72,11 @@ package() {
cp -r include/openssl "$pkgdir/${ANDROID_PREFIX_INCLUDE}"
install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ # add symlinks for dynamic libs with SHLIB_EXT so build scripts can find them under their usual names
+ for lib in libcrypto libssl; do
+ ln -s "${lib}_1_1.so" "${pkgdir}/${ANDROID_PREFIX_LIB}/${lib}.so"
+ done
+
# strip binaries
find "$pkgdir" -name 'lib*.so' -type f -exec "$ANDROID_STRIP" --strip-unneeded {} \;
find "$pkgdir" -name 'lib*.a' -type f -exec "$ANDROID_STRIP" -g {} \;