aboutsummaryrefslogtreecommitdiff
path: root/muslbuild/ncurses
blob: a9419d8bc52c41ac674f825ffe2ece55289ec0a0 (plain) (blame)
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
#!/bin/sh
set -e
set -x
relver="6.2-20210911"
build_dir="/v/muslbuild/ncurses"

PREFIX="$HOME/musl"
export CC="musl-gcc -static"

if ! [ -d "$build_dir" ] ; then
	mkdir -p "$build_dir"
fi
cd "$build_dir"

# arLoc="https://invisible-mirror.net/archives/ncurses/ncurses-%s.tar.gz"
# arLoc="https://invisible-mirror.net/archives/ncurses/ncurses-%s.tar.gz"
arLoc="https://invisible-mirror.net/archives/ncurses/current/ncurses-%s.tgz"
arLoc="$(printf "$arLoc\n" "$relver")"
arFn="ncurses-${relver}.tar.gz"

checksum=13f221dda7a5839fe7ccee827c93fafb420c943d0f7e7de4d60299046b965867f5afba54c84c1dce2d8b58ff7a5a112bea87c89eca103a14c0fea2ccdf430eaf

if ! [ -e "$arFn" ] ; then
	# we're verifying the checksum anyway, it's freaking out the full
	# chain not being there
	curl -k -L -o "$arFn" "$arLoc"
fi

echo "${checksum} $arFn" | sha512sum -c

tar xzvf "$arFn"
cd "ncurses-${relver}"
./configure --prefix="$PREFIX" --bindir="$HOME/bin" \
		--enable-static \
		--includedir="$PREFIX/include" \
		--without-ada \
		--without-tests \
		--disable-termcap \
		--with-termlib \
		--disable-rpath-hack \
		--without-cxx-binding \
		--enable-pc-files \
		--disable-shared \
		--without-pkg-config
make clean
make -j$(nproc)
make install -j$(nproc)