1 # Maintainer: mar77i <mysatyre at gmail dot com>
2 # Contributor: Demind <demind@gmail.com>
6 pkgdesc="Motion is a software motion detector. It grabs images from video4linux devices and/or from webcams."
8 url="http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome"
10 depends=('zlib' 'libjpeg')
11 makedepends=('subversion')
14 install="motion-git.install"
16 md5sums=('fc09828564850824f8549d258053e0b6')
18 _gitroot=https://github.com/sackmotion/motion.git
23 msg "Performing source checkout..."
24 if [ -d "$_gitname" ]; then
32 [ -d "./${_gitname}-build" ] && rm -rf "./${_gitname}-build"
33 cp -r "./${_gitname}" "./${_gitname}-build"
34 cd "./${_gitname}-build"
36 msg "GIT checkout done or server timeout"
39 sed -i 's@<linux/videodev.h>@<libv4l1.h>\n#include <linux/videodev2.h>@' *.c *.h
46 make DESTDIR="$pkgdir" install
47 install -D -m755 "$srcdir/rc.motion" "$pkgdir/etc/rc.d/motion"