aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2022-01-07 05:43:38 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2022-01-14 18:28:41 +0100
commit33efa5461fee8c2007c15bf686b9504231b9ace4 (patch)
treef24b93b8a71e4aff31dc791c58201260045ca545
parent497e20697c621dbae453cc5117504ccf5a0cb51b (diff)
downloadaports-33efa5461fee8c2007c15bf686b9504231b9ace4.tar.gz
aports-33efa5461fee8c2007c15bf686b9504231b9ace4.tar.bz2
aports-33efa5461fee8c2007c15bf686b9504231b9ace4.tar.xz
main/ncurses: fix libcurses.a symlink in -static subpackage
While at it, also provide symlinks from lib${lib}.a to lib${lib}w.a analog to what we do already for the shared library. Fixes #13391
-rw-r--r--main/ncurses/APKBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/main/ncurses/APKBUILD b/main/ncurses/APKBUILD
index c8a1414649..013bfd9901 100644
--- a/main/ncurses/APKBUILD
+++ b/main/ncurses/APKBUILD
@@ -2,7 +2,7 @@
pkgname=ncurses
pkgver=6.3_p20220101
_ver=${pkgver/_p/-}
-pkgrel=0
+pkgrel=1
pkgdesc="Console display library"
url="https://invisible-island.net/ncurses/"
arch="all"
@@ -109,6 +109,10 @@ base() {
static() {
pkgdesc="Static libraries for the ncurses library"
mkdir -p "$subpkgdir"/usr/lib
+ for lib in ncurses ncurses++ form panel menu; do
+ ln -s lib${lib}w.a "$subpkgdir"/usr/lib/lib${lib}.a
+ done
+ # link curses -> ncurses
mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/
ln -s libncurses.a "$subpkgdir"/usr/lib/libcurses.a
}