mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
# $Id$
|
|
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - configure with --without-optimizecpu to avoid overrides to our CFLAGS
|
|
|
|
pkgname=motion
|
|
pkgver=4.1
|
|
pkgrel=1
|
|
pkgdesc="A software motion detector which grabs images from video4linux devices and/or from webcams"
|
|
arch=('x86_64')
|
|
license=('GPL')
|
|
url="http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome"
|
|
depends=('sqlite' 'ffmpeg')
|
|
backup=('etc/motion/motion.conf')
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/Motion-Project/motion/archive/release-$pkgver.tar.gz")
|
|
sha256sums=('277029c80df0d37deefbbea6d15c66a9067d9166fe8f76eb5f90aa6e97aa9741')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-release-${pkgver}"
|
|
autoreconf
|
|
./configure --prefix=/usr \
|
|
--without-pgsql \
|
|
--without-mysql \
|
|
--sysconfdir=/etc \
|
|
--with-ffmpeg \
|
|
--with-webp \
|
|
--without-optimizecpu
|
|
make
|
|
}
|
|
|
|
package(){
|
|
cd "${srcdir}/${pkgname}-release-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
install -Dm644 "motion-dist.conf" "${pkgdir}/etc/motion/motion.conf"
|
|
install -Dm644 "motion.service" "${pkgdir}/usr/lib/systemd/system/motion.service"
|
|
}
|