wok-6.x view v4l-dvb/receipt @ rev 5332

xorg-server: use correct option --enable-config-udev
author Christophe Lincoln <pankso@slitaz.org>
date Sun Apr 25 20:58:12 2010 +0200 (2010-04-25)
parents 889326085343
children 39f586a2b014
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 IFS="." ; set -- $KERNEL_VERSION ; unset IFS
19 cat > v4l/.version << EOF
20 VERSION=$1
21 PATCHLEVEL:=$2
22 SUBLEVEL:=$3
23 KERNELRELEASE:=$KERNEL_VERSION-slitaz
24 EOF
25 make SRCDIR="$WOK/linux/linux-$KERNEL_VERSION" CONFIG_MEDIA_TUNER_CUSTOMISE=n CONFIG_RADIO_ADAPTERS=n CONFIG_RADIO_MIROPCM20=n CONFIG_MANTIS_CORE=n
26 make DESTDIR="$PWD/_pkg" install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
33 EXTRAVERSION=_$KERNEL_VERSION
35 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/
37 find $_pkg/lib/modules/$KERNEL_VERSION-slitaz -name "*.ko" -exec lzma e '{}' '{}'.gz \; 2> /dev/null
38 find $_pkg/lib/modules/$KERNEL_VERSION-slitaz -name "*.ko" -exec rm '{}' \;
39 cp -a $_pkg/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/
40 }
42 post_install()
43 {
44 echo "Processing post-install commands..."
45 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
46 }
48 post_remove()
49 {
50 echo "Processing post-remove commands..."
51 depmod -a
52 }