# SliTaz package receipt.

PACKAGE="util-linux-ng"
VERSION="2.36.2"
CATEGORY="meta"
SHORT_DESC="Util linux new generation (Meta package to build utility ans libs)."
MAINTAINER="pankso@slitaz.org"
SOURCE="util-linux"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="http://kernel.org/~kzak/util-linux-ng/"
WGET_URL="https://cdn.kernel.org/pub/linux/utils/util-linux/v${VERSION%.*}/$TARBALL"
COOK_OPT="!fs"
LOCALE=""

DEPENDS=""
BUILD_DEPENDS="ncurses-dev zlib-dev python-dev libcap-ng-dev"

# Rules to configure and make the package.
compile_rules()
{
	cd $src

	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--enable-partx \
		$CONFIGURE_ARGS &&
	make &&
	make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/bin
}