blob: 13025c603bafa5104b729dc3a00ecbb9be720b67 (
plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
#!/bin/mkpkg
# description: System V Release 4.0 curses emulation library
# url: https://invisible-island.net/ncurses/
name=ncurses
version=6.6
release=2
source=(https://invisible-mirror.net/archives/ncurses/$name-$version.tar.gz)
sha256sums=(
"355b4cbbed880b0381a04c46617b7656e362585d52e9cf84a67e2009b749ff11"
)
patch() {
cd $name-$version
sed -i 's_/.terminfo_/.config/terminfo_g' include/term_entry.h include/tic.h
sed -i 's_/usr/share/_/lib/_g' include/tic.h misc/terminfo.src
}
build() {
cd $name-$version
./configure \
--prefix=/ \
--bindir=/bin \
--libdir=/lib \
--includedir=/include \
--mandir=/usr/share/man \
--datadir=/lib \
--disable-nls \
--disable-rpath-hack \
--disable-termcap \
--enable-const \
--enable-pc-files \
--enable-widec \
--without-ada \
--without-debug \
--without-tests \
--with-pkg-config-libdir=/lib/pkgconfig \
--with-shared
make
make install DESTDIR=$PKG
for LIB in ncurses form panel menu; do
echo "INPUT(-l${LIB}w)" > $PKG/lib/lib${LIB}.so
ln -sf lib${LIB}w.a $PKG/lib/lib${LIB}.a
done
echo "INPUT(-lncursesw)" > $PKG/lib/libcurses.so
echo "INPUT(-lncursesw)" > $PKG/lib/libcursesw.so
ln -sf libncurses++w.a $PKG/lib/libncurses++.a
ln -sf libncursesw.a $PKG/lib/libcurses.a
for PC in ncursesw formw panelw menuw; do
ln -sf ${PC}.pc $PKG/lib/pkgconfig/${PC%w}.pc
done
ln -sf ncursesw.pc $PKG/lib/pkgconfig/curses.pc
rm -f $PKG/bin/ncurses*-config
rm -rf $PKG/share
}
signify() {
untrusted comment: public key
RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}
# vim: filetype=sh
|