wok-current view motion/receipt @ rev 24399

updated ccid (1.4.31 -> 1.5.0)
author Hans-G?nter Theisgen
date Tue Feb 08 14:40:28 2022 +0100 (2022-02-08)
parents ab3bb1a75137
children 7c04901ef470
line source
1 # SliTaz package receipt.
3 PACKAGE="motion"
4 VERSION="4.3.0"
5 CATEGORY="multimedia"
6 SHORT_DESC="Monitors the video signal from cameras."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://motion-project.github.io/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/Motion-Project/$PACKAGE/archive/release-$VERSION.tar.gz"
14 DEPENDS="ffmpeg jpeg libmicrohttpd libpthread-stubs libv4l"
15 BUILD_DEPENDS="automake ffmpeg-dev jpeg-dev libmicrohttpd-dev libpthread-stubs \
16 libtool libv4l-dev"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/release-\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's@<linux/videodev.h>@<libv4l1.h>\n#include <linux/videodev2.h>@' \
28 src/*.c \
29 src/*.h
31 autoreconf -fiv &&
32 ./configure \
33 --sysconfdir=/etc/motion &&
34 make &&
35 make install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/etc/motion
42 mkdir -p $fs/usr
44 cp -a $install/usr/bin $fs/usr
45 cp -a $stuff/motion.conf $fs/etc/motion
46 cp -a $stuff/init.d $fs/etc
48 chmod 0644 $fs/etc/motion/*
49 }