wok-next annotate fswebcam/receipt @ rev 7098
Up mtr (0.80)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Wed Nov 03 09:59:21 2010 +0000 (2010-11-03) |
parents | |
children | d1768332cee0 |
rev | line source |
---|---|
jozee@4607 | 1 # SliTaz package receipt. |
jozee@4607 | 2 |
jozee@4607 | 3 PACKAGE="fswebcam" |
jozee@4607 | 4 VERSION="20070108" |
jozee@4607 | 5 CATEGORY="misc" |
jozee@4607 | 6 MAINTAINER="jozee@slitaz.org" |
jozee@4607 | 7 SHORT_DESC="Tiny and flexible webcam app" |
jozee@4607 | 8 BUILD_DEPENDS="$DEPENDS libgd-dev" |
jozee@4607 | 9 WEB_SITE="http://www.firestorm.cx/fswebcam/" |
jozee@4607 | 10 DEPENDS="libgd" |
jozee@4607 | 11 CONFIG_FILES="etc/fswebcam.conf" |
jozee@4607 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
jozee@4607 | 13 WGET_URL="$WEB_SITE/files/$TARBALL" |
jozee@4607 | 14 TAGS="webcam" |
jozee@4607 | 15 |
jozee@4607 | 16 # Rules to configure and make the package. |
jozee@4607 | 17 |
jozee@4607 | 18 compile_rules() { |
jozee@4607 | 19 cd $src |
jozee@4607 | 20 while read file; do |
jozee@4607 | 21 [ -f done.$file ] && continue |
jozee@4607 | 22 echo "Apply $file..." |
jozee@4607 | 23 patch -p1 < ../stuff/$PACKAGE-$VERSION-$file || return 1 |
jozee@4607 | 24 touch done.$file |
jozee@4607 | 25 done <<EOT |
jozee@4607 | 26 gzip.patch |
jozee@4607 | 27 EOT |
jozee@4607 | 28 ./configure --prefix=/usr && |
jozee@4607 | 29 make && |
jozee@4607 | 30 make DESTDIR=$PWD/_pkg install |
jozee@4607 | 31 } |
jozee@4607 | 32 |
jozee@4607 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4607 | 34 genpkg_rules() |
jozee@4607 | 35 { |
jozee@4607 | 36 mkdir -p $fs/etc $fs/usr |
jozee@4607 | 37 cp -a stuff/fswebcam.conf $fs/etc/fswebcam.conf |
jozee@4607 | 38 cp -a $_pkg/usr/bin $fs/usr |
jozee@4607 | 39 } |