void-packages/srcpkgs/motion/template
2015-09-15 19:31:54 +02:00

30 lines
882 B
Bash

# Template file for 'motion'
pkgname=motion
version=3.2.12+20140318
revision=2
build_style=gnu-configure
hostmakedepends="automake"
makedepends="v4l-utils-devel zlib-devel"
short_desc="A motion detector software"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-2"
homepage="http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome"
_commit=ad7e243fcaee500f67297305d9235556fb4270b9
wrksrc="$pkgname-$_commit"
distfiles="https://github.com/sackmotion/motion/archive/${_commit}.tar.gz"
checksum=67e99398f0941012ee909a98673b9473b69780bf3b8a971594fcfa255ed4efeb
if [ -z "$CROSS_BUILD" ]; then
configure_args="--enable-ffmpeg"
hostmakedepends+=" ffmpeg-devel"
makedepends+=" ffmpeg-devel"
fi
pre_configure() {
autoreconf -fi
}
post_install() {
mv $DESTDIR/usr/share/motion* $DESTDIR/usr/share/motion
mv $DESTDIR/usr/share/doc/motion* $DESTDIR/usr/share/doc/motion
}