wok-current view v4l-dvb/receipt @ 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 | |
children | d6f7312a4e69 |
line source
1 # SliTaz package receipt.
3 PACKAGE="v4l-dvb"
4 VERSION="development"
5 CATEGORY="multimedia"
6 MAINTAINER="jozee@slitaz.org"
7 SHORT_DESC="v4l-dvb development repository"
8 DEPENDS=""
9 BUILD_DEPENDS="python mercurial coreutils-operations"
10 WEB_SITE="http://linuxtv.org/hg/v4l-dvb/"
11 TAGS="webcam"
13 # Rules to configure and make the package.
14 compile_rules() {
15 [ -d $PACKAGE-$VERSION ] || hg clone $WEB_SITE $PACKAGE-$VERSION
16 cd $src
17 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
18 make SRCDIR="$WOK/linux/linux-$KERNEL_VERSION" CONFIG_MEDIA_TUNER_CUSTOMISE=n CONFIG_RADIO_ADAPTERS=n CONFIG_RADIO_MIROPCM20=n CONFIG_MANTIS_CORE=n
19 make DESTDIR="$PWD/_pkg" install
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
26 EXTRAVERSION=_$KERNEL_VERSION
28 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/
30 find $_pkg/lib/modules/$KERNEL_VERSION-slitaz -name "*.ko" -exec lzma e '{}' '{}'.gz \; 2> /dev/null
31 find $_pkg/lib/modules/$KERNEL_VERSION-slitaz -name "*.ko" -exec rm '{}' \;
32 cp -a $_pkg/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/
33 }
35 post_install()
36 {
37 echo "Processing post-install commands..."
38 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
39 }
41 post_remove()
42 {
43 echo "Processing post-remove commands..."
44 depmod -a
45 }