wok-6.x rev 4613
Add v4l-dvb (mercurial branch: latest and all webcam drivers with libv4l support)
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Wed Dec 16 19:30:43 2009 +0000 (2009-12-16) |
parents | c7adce465b63 |
children | 5829c7d9b8cf |
files | v4l-dvb/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/v4l-dvb/receipt Wed Dec 16 19:30:43 2009 +0000 1.3 @@ -0,0 +1,45 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="v4l-dvb" 1.7 +VERSION="development" 1.8 +CATEGORY="multimedia" 1.9 +MAINTAINER="jozee@slitaz.org" 1.10 +SHORT_DESC="v4l-dvb development repository" 1.11 +DEPENDS="" 1.12 +BUILD_DEPENDS="python mercurial coreutils-operations" 1.13 +WEB_SITE="http://linuxtv.org/hg/v4l-dvb/" 1.14 +TAGS="webcam" 1.15 + 1.16 +# Rules to configure and make the package. 1.17 +compile_rules() { 1.18 + [ -d $PACKAGE-$VERSION ] || hg clone $WEB_SITE $PACKAGE-$VERSION 1.19 + cd $src 1.20 + KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.21 + make SRCDIR="$WOK/linux/linux-$KERNEL_VERSION" CONFIG_MEDIA_TUNER_CUSTOMISE=n CONFIG_RADIO_ADAPTERS=n CONFIG_RADIO_MIROPCM20=n CONFIG_MANTIS_CORE=n 1.22 + make DESTDIR="$PWD/_pkg" install 1.23 +} 1.24 + 1.25 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.26 +genpkg_rules() 1.27 +{ 1.28 + KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.29 + EXTRAVERSION=_$KERNEL_VERSION 1.30 + 1.31 + mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/ 1.32 + 1.33 + find $_pkg/lib/modules/$KERNEL_VERSION-slitaz -name "*.ko" -exec lzma e '{}' '{}'.gz \; 2> /dev/null 1.34 + find $_pkg/lib/modules/$KERNEL_VERSION-slitaz -name "*.ko" -exec rm '{}' \; 1.35 + cp -a $_pkg/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/ 1.36 +} 1.37 + 1.38 +post_install() 1.39 +{ 1.40 + echo "Processing post-install commands..." 1.41 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz 1.42 +} 1.43 + 1.44 +post_remove() 1.45 +{ 1.46 + echo "Processing post-remove commands..." 1.47 + depmod -a 1.48 +}