wok-6.x annotate fswebcam/receipt @ rev 24442

created recipe for firefox-official-da
author Hans-G?nter Theisgen
date Mon Feb 14 07:26:07 2022 +0100 (2022-02-14)
parents 432dd31a79d5
children d5468918986e
rev   line source
jozee@4607 1 # SliTaz package receipt.
jozee@4607 2
jozee@4607 3 PACKAGE="fswebcam"
pankso@16469 4 VERSION="20140113"
jozee@4607 5 CATEGORY="misc"
jozee@4607 6 MAINTAINER="jozee@slitaz.org"
pascal@15588 7 LICENSE="GPL2"
jozee@4607 8 SHORT_DESC="Tiny and flexible webcam app"
pascal@21885 9 WEB_SITE="https://www.sanslogic.co.uk/fswebcam/"
jozee@4607 10 CONFIG_FILES="etc/fswebcam.conf"
pankso@16469 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
jozee@4607 12 WGET_URL="$WEB_SITE/files/$TARBALL"
jozee@4607 13 TAGS="webcam"
pankso@16495 14 HOST_ARCH="i486"
jozee@4607 15
pascal@15588 16 DEPENDS="libgd"
pankso@16469 17 BUILD_DEPENDS="libgd-dev"
pascal@15588 18
pascal@24427 19 # What is the latest version available today?
pascal@24427 20 current_version()
pascal@24427 21 {
pascal@24427 22 wget -O - ${WGET_URL%/*/*} 2>/dev/null | \
pascal@24427 23 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24427 24 }
pascal@24427 25
jozee@4607 26 # Rules to configure and make the package.
pankso@16469 27 compile_rules()
pankso@16469 28 {
pankso@16469 29 ./configure \
pankso@16469 30 --prefix=/usr $CONFIGURE_ARGS &&
pankso@16469 31 make && make install
jozee@4607 32 }
jozee@4607 33
jozee@4607 34 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@4607 35 genpkg_rules()
jozee@4607 36 {
jozee@4607 37 mkdir -p $fs/etc $fs/usr
jozee@4607 38 cp -a stuff/fswebcam.conf $fs/etc/fswebcam.conf
pascal@15588 39 cp -a $install/usr/bin $fs/usr
jozee@4607 40 }