# SliTaz package receipt.

PACKED_SIZE="32.0K"
UNPACKED_SIZE="116.0K"
PACKAGE="libatasmart"
VERSION="0.19"
CATEGORY="system-tools"
SHORT_DESC="A disk reporting library."
MAINTAINER="pankso@slitaz.org"
LICENSE="LGPL2.1"
WEB_SITE="http://0pointer.de/blog/projects/being-smart.html"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="http://0pointer.de/public/$TARBALL"

DEPENDS="udev"
BUILD_DEPENDS="udev-dev"

current_version()
{
	wget -O - http://git.0pointer.net/$PACKAGE.git/ 2>/dev/null | \
	sed '/tag.?h=v/!d;s|.*tag.?h=v||;s|.>.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
	./configure			\
		--disable-static	\
		$CONFIGURE_ARGS &&
	make -j 1 &&
	make install
}

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

	cp -a $install/usr/lib/*.so*	$fs/usr/lib
	cp -a $install/usr/sbin		$fs/usr
}
