blob: e7d9b68f9b4247be45c8092544bc46636e00fb3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# $Id: PKGBUILD 273896 2017-12-11 20:04:09Z jlichtblau $
# Maintainer: Evgeny Kurnevsky <kurnevsky@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=motion
pkgver=4.1.1
pkgrel=3
pkgdesc="A software motion detector which grabs images from video4linux devices and/or from webcams"
arch=('x86_64' 'i686' 'armv7h' 'armv6h' 'aarch64')
license=('GPL')
url="https://motion-project.github.io"
depends=('sqlite' 'ffmpeg')
backup=('etc/motion/motion.conf')
source=(
"$pkgname-$pkgver.tar.gz::https://github.com/Motion-Project/motion/archive/release-$pkgver.tar.gz"
"ffmpeg.patch"
)
sha256sums=(
'2074b935bdfe28f84c2c3233274b06908336778f303bb13530d4299c3f8aa4e2'
'14302daa63c0cdc8b0f1e7a8c790e254797b6f97e25bf9b8fab0453029151cbc'
)
prepare() {
cd "${srcdir}/${pkgname}-release-${pkgver}"
patch -Np1 -i "${srcdir}/ffmpeg.patch"
}
build() {
cd "${srcdir}/${pkgname}-release-${pkgver}"
autoreconf
./configure --prefix=/usr \
--without-pgsql \
--without-mysql \
--sysconfdir=/etc \
--with-ffmpeg \
--with-webp
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"
}
|