wok-undigest diff ncurses/receipt @ rev 1223

copied libxext recipe from wok-next
author Hans-G?nter Theisgen
date Fri Nov 15 17:38:29 2019 +0100 (2019-11-15)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ncurses/receipt	Fri Nov 15 17:38:29 2019 +0100
     1.3 @@ -0,0 +1,52 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="ncurses"
     1.7 +VERSION="5.9"
     1.8 +CATEGORY="base-system"
     1.9 +SHORT_DESC="Library of functions to manage display on terminals."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 +LICENSE="MIT"
    1.13 +WEB_SITE="http://invisible-island.net/ncurses/"
    1.14 +WGET_URL="ftp://invisible-island.net/ncurses/$TARBALL"
    1.15 +HOST_ARCH="i486 arm"
    1.16 +
    1.17 +DEPENDS="ncurses-common libtinfo libtic"
    1.18 +BUILD_DEPENDS=""
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +	# Ncurses need an installed /usr/bin/tic witch is in ncursesw-extra. And
    1.24 +	# when cross compiling we can't use the freshly cooked binary. See cook log:
    1.25 +	#
    1.26 +	#** Building terminfo database, please wait...
    1.27 +	#Running /usr/bin/tic to install /home/slitaz/wok/ncurses/install/usr/share/terminfo
    1.28 +	#
    1.29 +	if [ ! -d "/var/lib/tazpkg/installed/ncursesw-extra" ]; then
    1.30 +		echo "Installing: ncursesw-extra"
    1.31 +		tazpkg get-install ncursesw-extra 2>/dev/null 1>/dev/null
    1.32 +	fi
    1.33 +	cd $src
    1.34 +	mkdir -p $DESTDIR/usr/lib/terminfo
    1.35 +	sed -i 's|\tsh $(srcdir)/MKhashsize.sh|\tash $(srcdir)/MKhashsize.sh|' \
    1.36 +		include/Makefile.in
    1.37 +	./configure \
    1.38 +		--libdir=/lib \
    1.39 +		--sysconfdir=/etc \
    1.40 +		--with-shared \
    1.41 +		--without-debug \
    1.42 +		--without-ada \
    1.43 +		--with-build-cc="gcc -D_GNU_SOURCE" \
    1.44 +		--with-termlib \
    1.45 +		--with-ticlib \
    1.46 +		$CONFIGURE_ARGS &&
    1.47 +	make && make install
    1.48 +}
    1.49 +
    1.50 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.51 +genpkg_rules()
    1.52 +{
    1.53 +    mkdir -p $fs/lib
    1.54 +    cp -a $install/lib/libncurses.so* $fs/lib
    1.55 +}