wok-current annotate motion/receipt @ rev 24425

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