# SliTaz package receipt.

PACKAGE="cmake"
VERSION="3.19.5"
CATEGORY="development"
SHORT_DESC="Cross-platform Make."
MAINTAINER="pankso@slitaz.org"
DEPENDS="openssl libidn gcc-lib-base"
BUILD_DEPENDS="ncurses-dev openssl-dev gcc-lib-base"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.cmake.org/"
WGET_URL="http://www.cmake.org/files/v${VERSION%.*}/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./bootstrap \
		--prefix=/usr \
		--docdir=/share/doc/$PACKAGE \
		--mandir=/share/man &&
	make &&
	make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	cp -a $_pkg/usr $fs
	rm -rf $fs/usr/share/man
}