# SliTaz package receipt.

PACKAGE="motion"
VERSION="3.2.12"
CATEGORY="multimedia"
SHORT_DESC="Motion is a program that monitors the video signal from cameras."
MAINTAINER="pankso@slitaz.org"
DEPENDS="libpthread-stubs jpeg ffmpeg"
BUILD_DEPENDS="$DEPENDS jpeg-dev ffmpeg-dev"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.lavrsen.dk/foswiki/bin/view/Motion"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--sysconfdir=/etc/motion &&
	make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr
	cp -a $_pkg/etc $fs
	cp -a $_pkg/usr/bin $fs/usr
	chmod 0644 $fs/etc/motion/*
}