1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh -e
./configure \
--prefix=/usr \
--disable-nls
# remove gettext make dep by not building other language support
sed '/^include po\/Module.mk$/d' Makefile >_
mv _ Makefile
# The _XOPEN_SOURCE definition is to workaround a bug in ncurses
# where _GNU_SOURCE should enable WIDECHAR support as well as
# _XOPEN_SOURCE, but only _XOPEN_SOURCE is checked.
# In glibc, defining _GNU_SOURCE causes _XOPEN_SOURCE to be defined,
# but not in musl.
# (An even better method than this CFLAG is to use `pkgconf --cflags ncurses`,
# but I want to keep the dependencies down. However, to build with
# netbsd-curses instead of ncurses, just remove this CFLAG and
# make sure you've installed pkgconf. :)
make CFLAGS+=-D_XOPEN_SOURCE=600
make DESTDIR="$1" install
# Remove manpages in extra languages
for lang in ru nl it fr de; do
rm -fr "$1/usr/share/man/$lang";
done
|