aboutsummaryrefslogtreecommitdiffstats
path: root/main/ncurses
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-12-17 21:06:29 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-12-17 21:06:29 +0000
commit7b94ffd1a69a7add8bc823715f6f52feefe1cb81 (patch)
treecb271fdc4ec921fd3733cb958850b4f00082b051 /main/ncurses
parent1f75c858b89e165cc905357e65e7a3b2d97c1c75 (diff)
downloadaports-7b94ffd1a69a7add8bc823715f6f52feefe1cb81.tar.bz2
aports-7b94ffd1a69a7add8bc823715f6f52feefe1cb81.tar.xz
main/ncurses: add wrappers for non-widec libs
some programs wants to link against -lncurses. We provide wrappers to force link against the widechar library instead.
Diffstat (limited to 'main/ncurses')
-rw-r--r--main/ncurses/APKBUILD11
1 files changed, 10 insertions, 1 deletions
diff --git a/main/ncurses/APKBUILD b/main/ncurses/APKBUILD
index b9a2a79be0..b1da826c3b 100644
--- a/main/ncurses/APKBUILD
+++ b/main/ncurses/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ncurses
pkgver=6.0
-pkgrel=3
+pkgrel=4
pkgdesc="Console display library"
url="http://www.gnu.org/software/ncurses/"
arch="all"
@@ -61,6 +61,15 @@ package() {
done
}
+dev() {
+ default_dev
+ # force link against *w.so
+ for lib in ncurses ncurses++ form panel menu; do
+ echo "INPUT(-l${lib}w)" > "$subpkgdir"/usr/lib/lib${lib}.so
+ ln -s ${lib}w.pc "$subpkgdir"/usr/lib/pkgconfig/${lib}.pc
+ done
+}
+
terminfo() {
depends="$pkgname-terminfo-base"
rm -rf $subpkgdir