PKGBUILDs/extra/motion/PKGBUILD
2009-10-09 21:23:22 -05:00

34 lines
1.2 KiB
Bash

# $Id: PKGBUILD 53882 2009-10-03 18:50:24Z paul $
# Maintainer: None
pkgname=motion
pkgver=3.2.11
pkgrel=4
pkgdesc="Motion is a software motion detector. It grabs images from video4linux devices and/or from webcams."
arch=(i686 x86_64)
license=('GPL')
url="http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome"
depends=('ffmpeg>=0.5')
options=('!makeflags')
source=(http://downloads.sourceforge.net/sourceforge/motion/${pkgname}-${pkgver}.tar.gz
rc.motion
motion-3.2.11-offsett.patch
motion-strerror.patch
)
md5sums=('3a26c00f3250eacf6fa93c7a7e0249d9'
'fc09828564850824f8549d258053e0b6'
'b4f9a30cf47d403f8098ade75ed4350f'
'1d27369e4157acf59d077553bdd31894')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np1 -i "${srcdir}/motion-3.2.11-offsett.patch" || return 1
patch -Np1 -i "${srcdir}/motion-strerror.patch" || return 1
./configure --prefix=/usr --without-pgsql --without-mysql \
--with-libavcodec=/usr/lib/ --sysconfdir=/etc/motion || return 1
make || return 1
make DESTDIR="${pkgdir}" install || return 1
install -m755 -d "${pkgdir}/etc/rc.d"
install -m755 "${srcdir}/rc.motion" "${pkgdir}/etc/rc.d/motion" || return 1
}