aboutsummaryrefslogtreecommitdiffstats
path: root/main/ncurses
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-03-25 19:10:40 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-03-25 20:25:29 +0000
commitbc05eaa2ff8bd0519a2395f81cd25a5807aa0217 (patch)
tree9b53d57c0f3c4982ba32dd751493d1d0dbdb93f6 /main/ncurses
parent4b286933bb04e101692aa2b68a4b032d897a3a68 (diff)
downloadaports-bc05eaa2ff8bd0519a2395f81cd25a5807aa0217.tar.bz2
aports-bc05eaa2ff8bd0519a2395f81cd25a5807aa0217.tar.xz
main/ncurses: also build widec libs
Diffstat (limited to 'main/ncurses')
-rw-r--r--main/ncurses/APKBUILD42
1 files changed, 31 insertions, 11 deletions
diff --git a/main/ncurses/APKBUILD b/main/ncurses/APKBUILD
index bb95248d8e..7153f33bdb 100644
--- a/main/ncurses/APKBUILD
+++ b/main/ncurses/APKBUILD
@@ -1,33 +1,45 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=ncurses
pkgver=5.8
-pkgrel=1
+pkgrel=2
pkgdesc="Console display library"
url="http://www.gnu.org/software/ncurses/"
arch="all"
license=MIT
depends=
source="ftp://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz"
-subpackages="$pkgname-dev $pkgname-doc $pkgname-base $pkgname-terminfo $pkgname-libs"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-base $pkgname-terminfo
+ $pkgname-widec-libs:widec $pkgname-libs"
build() {
+ local _confopts="--mandir=/usr/share/man
+ --disable-ada
+ --disable-termcap
+ --without-cxx-binding
+ --with-terminfo-dirs="/etc/terminfo:/usr/share/terminfo"
+ --with-shared"
cd "$srcdir/$pkgname-$pkgver"
- ./configure \
- --mandir=/usr/share/man \
- --disable-ada \
- --disable-termcap \
- --without-cxx-binding \
- --with-terminfo-dirs="/etc/terminfo:/usr/share/terminfo" \
- --with-shared
+ mkdir ncurses-build ncursesw-build
+ cd ncurses-build
+ ../configure $_confopts || return 1
+ make libs || return 1
+ make -C progs || return 1
- make || return 1
+ cd ../ncursesw-build
+ ../configure $_confopts --enable-widec --without-progs || return 1
+ make libs || return 1
+ cd ..
}
package() {
cd "$srcdir/$pkgname-$pkgver"
- make install DESTDIR="$pkgdir"
+ make -j1 -C ncurses-build DESTDIR="$pkgdir" install.libs \
+ install.progs install.data || return 1
+ make -j1 -C ncursesw-build DESTDIR="$pkgdir" install.libs \
+ install.includes install.man || return 1
+
# Install basic terms in /etc/terminfo
for i in ansi console dumb linux rxvt screen sun vt52 vt100 vt102 \
vt200 vt220 xterm xterm-color xterm-xfree86; do
@@ -49,6 +61,13 @@ terminfo() {
mv $pkgdir/usr/share/terminfo $subpkgdir/usr/share
}
+widec() {
+ pkgdesc="Ncurses wide character libraries"
+ depends="ncurses-base"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/lib*w.so.* "$subpkgdir"/usr/lib/
+}
+
libs() {
pkgdesc="Ncurses libraries"
replaces="ncurses"
@@ -57,6 +76,7 @@ libs() {
mv "$pkgdir"/usr/lib "$subpkgdir"/usr/
}
+
base() {
pkgdesc="Descriptions of common terminals"
replaces="ncurses"