mirror of
https://github.com/pygos/build.git
synced 2024-11-16 08:27:11 +01:00
David Oberhollenzer
fa4eff263b
This commit adds an "emptypackage" template that implements defaults for all package functions and is included before every package. Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
27 lines
753 B
Text
Executable file
27 lines
753 B
Text
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"
|
|
|
|
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"
|
|
}
|