1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-05-17 03:06:12 +02:00
build/pkg/ncurses/build
David Oberhollenzer 0fe431b970 Fix ncurses pkg-config generator script
It picks up the linker hardening flags and stuffs them into the
Libs section of the pkg-config file. Some packages, such as
procps-ng end up trying to apply them in a semi parsed form and
choke when trying to link against "noexecstack".

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2020-04-07 03:28:21 +02:00

32 lines
783 B
Plaintext
Executable file

VERSION="6.2"
SRCDIR="ncurses-${VERSION}"
TARBALL="${SRCDIR}.tar.gz"
URL="https://ftp.gnu.org/gnu/ncurses/"
SHA256SUM="30306e0c76e0f9f1f0de987cf1c82a5c21e1ce6568b9227f7da5b71cbea86c9d"
DEPENDS="toolchain toolchain"
SUBPKG="ncurses-dev ncurses++-dev ncurses"
prepare() {
apply_patches
}
build() {
run_configure "$1" --with-shared --without-debug --without-ada \
--enable-widec --with-pkg-config-libdir=/lib/pkgconfig \
--enable-pc-files --disable-stripping
make -j $NUMJOBS
}
deploy() {
make DESTDIR="$PKGDEPLOYDIR" install
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
mkdir -p "$PKGDEPLOYDIR/include/ncurses"
mv ${PKGDEPLOYDIR}/include/ncursesw/*.h "$PKGDEPLOYDIR/include"
}
check_update() {
check_update_simple "$URL" "ncurses" "tar.gz"
}