# SliTaz package receipt.

PACKAGE="libraw1394"
VERSION="2.0.7"
CATEGORY="system-tools"
SHORT_DESC="IEEE 1394 is a standard defining a high speed serial bus."
MAINTAINER="pankso@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.linux1394.org/"
WGET_URL="http://www.kernel.org/pub/linux/libs/ieee1394/$TARBALL"

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

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr/lib $fs/dev
	cp -a $_pkg/usr/bin $fs/usr
	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
	# Dev node
	mknod -m 0666 $fs/dev/raw1394 c 171 0
	chown root.root $fs/dev/raw1394 
}