wok diff libv4l/receipt @ rev 7739

Added pre_install and post_remove to hd2u.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Dec 20 08:07:07 2010 +0000 (2010-12-20)
parents c7adce465b63
children be13f25e790b
line diff
     1.1 --- a/libv4l/receipt	Wed Dec 16 19:26:37 2009 +0000
     1.2 +++ b/libv4l/receipt	Mon Dec 20 08:07:07 2010 +0000
     1.3 @@ -1,19 +1,21 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="libv4l"
     1.7 -VERSION="0.6.3"
     1.8 +VERSION="0.8.1"
     1.9  CATEGORY="multimedia"
    1.10  MAINTAINER="jozee@slitaz.org"
    1.11  SHORT_DESC="Userspace library for Video 4 Linux (1 and 2)"
    1.12  DEPENDS="glibc-base"
    1.13 -WEB_SITE="http://hansdegoede.livejournal.com/3636.html"
    1.14 -TARBALL="${PACKAGE}-${VERSION}.tar.gz"
    1.15 -WGET_URL="http://people.fedoraproject.org/~jwrdegoede/$TARBALL"
    1.16 +WEB_SITE="http://freshmeat.net/projects/libv4l"
    1.17 +SOURCE="v4l-utils"
    1.18 +TARBALL="${SOURCE}-${VERSION}.tar.bz2"
    1.19 +WGET_URL="http://linuxtv.org/downloads/v4l-utils/$TARBALL"
    1.20  TAGS="webcam video"
    1.21  
    1.22  # Rules to configure and make the package.
    1.23  
    1.24  compile_rules() {
    1.25 +  src=$WOK/$PACKAGE/$SOURCE-$VERSION
    1.26    cd $src
    1.27    make &&
    1.28    make install PREFIX="/usr" DESTDIR="${PWD}/_pkg" 
    1.29 @@ -22,6 +24,7 @@
    1.30  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.31  genpkg_rules()
    1.32  {
    1.33 +	_pkg=$WOK/$PACKAGE/$SOURCE-$VERSION/_pkg
    1.34  	mkdir -p $fs/usr/lib
    1.35  	cp -a $_pkg/usr/lib/*so* $fs/usr/lib/
    1.36  	cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib