2018-02-10 11:48:31 +01:00
|
|
|
VERSION="6.1"
|
2017-12-09 21:51:48 +01:00
|
|
|
SRCDIR="ncurses-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.gz"
|
|
|
|
URL="https://ftp.gnu.org/gnu/ncurses/"
|
2018-02-10 11:48:31 +01:00
|
|
|
SHA256SUM="aa057eeeb4a14d470101eff4597d5833dcef5965331be3528c08d99cebaa0d17"
|
2018-02-15 23:47:54 +01:00
|
|
|
DEPENDS="toolchain"
|
2017-12-09 21:51:48 +01:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2018-09-02 14:19:23 +02:00
|
|
|
run_configure "$1" --with-shared --without-debug --without-ada \
|
|
|
|
--enable-widec --with-pkg-config-libdir=/lib/pkgconfig \
|
|
|
|
--enable-pc-files --disable-stripping
|
2017-12-09 21:51:48 +01:00
|
|
|
|
|
|
|
make -j $NUMJOBS
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
|
|
|
local SOURCE="$1"
|
2018-02-16 23:22:04 +01:00
|
|
|
local DEPLOY="$2"
|
2017-12-09 21:51:48 +01:00
|
|
|
|
|
|
|
make DESTDIR="$DEPLOY" install
|
2018-06-16 17:46:17 +02:00
|
|
|
cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY"
|
2017-12-09 21:51:48 +01:00
|
|
|
rm "$DEPLOY/bin/ncursesw6-config"
|
2018-06-17 13:28:18 +02:00
|
|
|
mkdir -p "${DEPLOY}/include/ncurses"
|
2017-12-09 21:51:48 +01:00
|
|
|
|
2018-06-17 13:28:18 +02:00
|
|
|
for hdr in ${DEPLOY}/include/ncursesw/*.h; do
|
2017-12-09 21:51:48 +01:00
|
|
|
local fname=$(basename $hdr)
|
|
|
|
local target="../$fname"
|
|
|
|
|
2018-06-17 13:28:18 +02:00
|
|
|
mv "$hdr" "${DEPLOY}/include"
|
|
|
|
ln -s "$target" "${DEPLOY}/include/ncursesw/${fname}"
|
|
|
|
ln -s "$target" "${DEPLOY}/include/ncurses/${fname}"
|
2017-12-09 21:51:48 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
ln -s "libncursesw.so.$VERSION" "$DEPLOY/lib/libtinfo.so"
|
|
|
|
ln -s "libncursesw.so.$VERSION" "$DEPLOY/lib/libtinfo.so.$VERSION"
|
2018-06-17 13:28:18 +02:00
|
|
|
ln -s "libncursesw.a" "$DEPLOY/lib/libtinfo.a"
|
2017-12-09 21:51:48 +01:00
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
check_update() {
|
|
|
|
curl --silent -L "$URL" | grep -o ">ncurses-[0-9.]*tar.gz<" | \
|
|
|
|
sed 's/>ncurses-//g' | sed 's/.tar.gz<//g' | \
|
|
|
|
verson_find_greatest "$VERSION"
|
|
|
|
}
|