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