mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 18:26:39 +02:00
56 lines
1.9 KiB
Text
56 lines
1.9 KiB
Text
# Contributor: Katie Holly <holly@fuslvz.ws>
|
|
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
|
|
# Contributor: Mika Havela <mika.havela@gmail.com>
|
|
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=motion
|
|
pkgver=4.7.0
|
|
pkgrel=0
|
|
pkgdesc="Detect if a significant part of the picture has changed (e.g. from a webcam)"
|
|
url="https://motion-project.github.io"
|
|
arch="all"
|
|
options="!check"
|
|
license="GPL-2.0-or-later"
|
|
pkgusers="motion"
|
|
pkggroups="motion"
|
|
depends="v4l-utils"
|
|
makedepends="$depends_dev autoconf automake bash gettext-dev v4l-utils-dev linux-headers
|
|
libjpeg-turbo-dev ffmpeg-dev libmicrohttpd-dev libwebp-dev xz"
|
|
install="$pkgname.pre-install"
|
|
subpackages="$pkgname-doc $pkgname-openrc $pkgname-lang"
|
|
source="https://github.com/Motion-Project/motion/archive/release-$pkgver/motion-$pkgver.tar.gz
|
|
motion.confd
|
|
motion.initd
|
|
"
|
|
|
|
builddir="$srcdir"/$pkgname-release-$pkgver
|
|
|
|
prepare() {
|
|
default_prepare
|
|
autoreconf -fiv
|
|
}
|
|
|
|
build() {
|
|
./configure \
|
|
--without-pgsql \
|
|
--without-mysql \
|
|
--without-sqlite3 \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--without-optimizecpu
|
|
make
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
install -d -o "$pkgusers" -g "$pkggroups" "$pkgdir"/var/run/motion
|
|
install -d -o "$pkgusers" -g "$pkggroups" "$pkgdir"/var/lib/motion # Default config is configured to store captures here
|
|
install -Dm644 "$srcdir"/"$pkgname".confd "$pkgdir"/etc/conf.d/"$pkgname"
|
|
install -Dm755 "$srcdir"/"$pkgname".initd "$pkgdir"/etc/init.d/"$pkgname"
|
|
}
|
|
|
|
sha512sums="
|
|
121be986ef0d4a2dd4f8147ee9a6513d1fe373852f351953d12a914a832c31fa83365b2a285f1449de3f1f6156ad84b36f2fe90fe9dff966e27c793b1753fafc motion-4.7.0.tar.gz
|
|
8a67b5b0360924e58ba3136a737ce73bb43201a49b2b6e2c632426561b830f6ab55cbbeaa89be7f1683aa8fd322b4f31b9f560e67a93eaceb964c9f56ceef363 motion.confd
|
|
be30f19595dba27f2d0ca8133c93e134161781935a152bd1701e581410039e37742acd11987c38e6e64f495b1fd2b0a74a8c61ae0e6e211a475fca7994172501 motion.initd
|
|
"
|