mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-07 06:17:14 +02:00
testing/motion: modernize
This commit is contained in:
parent
66ff843457
commit
6acb037fe8
@ -24,21 +24,15 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/Motion-Project/$pkgname/arch
|
|||||||
strerror_r.patch
|
strerror_r.patch
|
||||||
"
|
"
|
||||||
|
|
||||||
_builddir="$srcdir"/$pkgname-release-$pkgver
|
builddir="$srcdir"/$pkgname-release-$pkgver
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
local i
|
default_prepare
|
||||||
cd "$_builddir"
|
autoreconf -fiv
|
||||||
for i in $source; do
|
|
||||||
case $i in
|
|
||||||
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
sed -i 's@<linux/videodev.h>@<libv4l1.h>\n#include <linux/videodev2.h>@' *.c *.h
|
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
autoreconf -fiv
|
|
||||||
./configure \
|
./configure \
|
||||||
--without-pgsql \
|
--without-pgsql \
|
||||||
--without-mysql \
|
--without-mysql \
|
||||||
@ -46,13 +40,12 @@ build() {
|
|||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--without-optimizecpu
|
--without-optimizecpu
|
||||||
|
make
|
||||||
make || return 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
make DESTDIR="$pkgdir" install || return 1
|
make DESTDIR="$pkgdir" install
|
||||||
install -d -o "$pkgusers" -g "$pkggroups" "$pkgdir"/var/run/motion
|
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 -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 -Dm644 "$srcdir"/"$pkgname".confd "$pkgdir"/etc/conf.d/"$pkgname"
|
||||||
|
Loading…
Reference in New Issue
Block a user