wok-current view v4l-dvb/receipt @ rev 5559
dillo-hg, libffcall, v4l-dvb: cache fetched files in SOURCES_REPOSITORY
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 14 10:35:21 2010 +0200 (2010-05-14) |
parents | d6f7312a4e69 |
children | a11358feced4 |
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 TARBALL=$SOURCES_REPOSITORY/$PACKAGE-hg-$VERSION.tar.gz
16 if [ -d $PACKAGE-$VERSION ]; then
17 true
18 elif [ -f $TARBALL ]; then
19 tar xzf $TARBALL
20 else
21 hg clone $WEB_SITE $PACKAGE-$VERSION
22 tar czf $TARBALL $PACKAGE-$VERSION
23 fi
24 cd $src
25 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
26 IFS="." ; set -- $KERNEL_VERSION ; unset IFS
27 cat > v4l/.version << EOF
28 VERSION=$1
29 PATCHLEVEL:=$2
30 SUBLEVEL:=$3
31 KERNELRELEASE:=$KERNEL_VERSION-slitaz
32 EOF
33 make SRCDIR="$WOK/linux/linux-$KERNEL_VERSION" CONFIG_MEDIA_TUNER_CUSTOMISE=n CONFIG_RADIO_ADAPTERS=n CONFIG_RADIO_MIROPCM20=n CONFIG_MANTIS_CORE=n
34 make DESTDIR="$PWD/_pkg" install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
41 EXTRAVERSION=_$KERNEL_VERSION
43 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/
45 find $_pkg/lib/modules/$KERNEL_VERSION-slitaz -name "*.ko" -exec lzma e '{}' '{}'.gz \; 2> /dev/null
46 find $_pkg/lib/modules/$KERNEL_VERSION-slitaz -name "*.ko" -exec rm '{}' \;
47 cp -a $_pkg/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/
48 }
50 post_install()
51 {
52 echo "Processing post-install commands..."
53 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
54 }
56 post_remove()
57 {
58 echo "Processing post-remove commands..."
59 depmod -a
60 }