34 lines
975 B
Bash
34 lines
975 B
Bash
# Maintainer: Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com>
|
|
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
|
|
pkgname=motion-git
|
|
_pkgname=motion
|
|
pkgver=release.3.4.1.r98.g7e16a9e
|
|
pkgrel=1
|
|
pkgdesc="A software motion detector which grabs images from video4linux devices and/or from webcams"
|
|
arch=('i686' 'x86_64')
|
|
license=('GPL')
|
|
url="https://motion-project.github.io/"
|
|
depends=('libjpeg' 'v4l-utils' 'ffmpeg')
|
|
backup=('etc/motion/motion.conf')
|
|
source=($_pkgname::git+https://github.com/Motion-Project/${_pkgname}.git)
|
|
md5sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd "${_pkgname}"
|
|
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${_pkgname}"
|
|
autoreconf
|
|
./configure --prefix=/usr --sysconfdir=/etc --without-mysql --without-pgsql
|
|
make
|
|
}
|
|
|
|
package(){
|
|
cd "${srcdir}/${_pkgname}"
|
|
make DESTDIR="${pkgdir}" install
|
|
install -Dm644 "${pkgdir}/usr/share/motion/examples/motion.service" "${pkgdir}/usr/lib/systemd/system/motion.service"
|
|
}
|