PKGBUILDs/community/motion/PKGBUILD

39 lines
1.1 KiB
Bash
Raw Normal View History

2016-11-08 19:54:10 +00:00
# $Id$
2017-12-12 00:38:34 +00:00
# Maintainer:
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
2016-11-08 19:54:10 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2016-11-09 00:37:33 +00:00
# - configure with --without-optimizecpu to avoid overrides to our CFLAGS
2016-11-08 19:54:10 +00:00
pkgname=motion
2017-12-12 00:38:34 +00:00
pkgver=4.1.1
2017-11-19 01:19:16 +00:00
pkgrel=1
2016-11-08 19:54:10 +00:00
pkgdesc="A software motion detector which grabs images from video4linux devices and/or from webcams"
2017-11-19 01:19:16 +00:00
arch=('x86_64')
2016-11-08 19:54:10 +00:00
license=('GPL')
url="http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome"
2017-11-19 01:19:16 +00:00
depends=('sqlite' 'ffmpeg')
2016-11-08 19:54:10 +00:00
backup=('etc/motion/motion.conf')
2016-11-14 19:05:26 +00:00
source=("$pkgname-$pkgver.tar.gz::https://github.com/Motion-Project/motion/archive/release-$pkgver.tar.gz")
2017-12-12 00:38:34 +00:00
sha256sums=('2074b935bdfe28f84c2c3233274b06908336778f303bb13530d4299c3f8aa4e2')
2016-11-08 19:54:10 +00:00
build() {
cd "${srcdir}/${pkgname}-release-${pkgver}"
autoreconf
./configure --prefix=/usr \
--without-pgsql \
--without-mysql \
--sysconfdir=/etc \
2016-11-09 00:37:33 +00:00
--with-ffmpeg \
2017-11-19 01:19:16 +00:00
--with-webp \
2016-11-09 00:37:33 +00:00
--without-optimizecpu
2016-11-08 19:54:10 +00:00
make
}
package(){
cd "${srcdir}/${pkgname}-release-${pkgver}"
make DESTDIR="${pkgdir}" install
2016-11-14 19:05:26 +00:00
install -Dm644 "motion-dist.conf" "${pkgdir}/etc/motion/motion.conf"
install -Dm644 "motion.service" "${pkgdir}/usr/lib/systemd/system/motion.service"
2016-11-08 19:54:10 +00:00
}