mirror of
git://git.2f30.org/morpheus.git
synced 2024-06-30 23:41:21 +00:00
![sin](/assets/img/avatar_default.png)
This is by far the simplest approach as packages previously in cross-scripts/ could also depend on other packages.
29 lines
591 B
Plaintext
29 lines
591 B
Plaintext
url=$mirror/ncurses.tar.gz
|
|
|
|
fetch() {
|
|
wget -c $url -O src/ncurses.tar.gz
|
|
}
|
|
|
|
unpack() {
|
|
cd src
|
|
[ -d ncurses-5.9 ] || tar xzf ncurses.tar.gz
|
|
cd -
|
|
}
|
|
|
|
build() {
|
|
cd src/ncurses-5.9
|
|
cp $top/stuff/ncurses-fallback.c ncurses/fallback.c
|
|
CC="x86_64-linux-musl-gcc -static" ./configure --prefix=$libcroot --without-tests \
|
|
--with-normal --enable-sigwinch --disable-nls --without-dlsym \
|
|
--without-cxx-binding \
|
|
--with-fallbacks="linux vt100 xterm xterm256-color" </dev/ptmx || return 1
|
|
make -j$nprocs || return 1
|
|
cd -
|
|
}
|
|
|
|
install() {
|
|
cd src/ncurses-5.9
|
|
make install || return 1
|
|
cd -
|
|
}
|