wok-stable annotate v4l-dvb/receipt @ rev 5563
emotion, esmart, ewl, ffmpeg-svn, hubbub, libffcall, libnsgif, libparserutils, libsmpeg, mplayer-svn, rage, v4l-dvb: do not cache empty tarball
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 14 11:03:45 2010 +0200 (2010-05-14) |
parents | 39f586a2b014 |
children | de9e5748e55a |
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() { |
pascal@5559 | 15 TARBALL=$SOURCES_REPOSITORY/$PACKAGE-hg-$VERSION.tar.gz |
pascal@5559 | 16 if [ -d $PACKAGE-$VERSION ]; then |
pascal@5559 | 17 true |
pascal@5559 | 18 elif [ -f $TARBALL ]; then |
pascal@5559 | 19 tar xzf $TARBALL |
pascal@5559 | 20 else |
pascal@5563 | 21 hg clone $WEB_SITE $PACKAGE-$VERSION && |
pascal@5559 | 22 tar czf $TARBALL $PACKAGE-$VERSION |
pascal@5559 | 23 fi |
jozee@4613 | 24 cd $src |
jozee@4613 | 25 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
pascal@4618 | 26 IFS="." ; set -- $KERNEL_VERSION ; unset IFS |
pascal@4618 | 27 cat > v4l/.version << EOF |
pascal@4618 | 28 VERSION=$1 |
pascal@4618 | 29 PATCHLEVEL:=$2 |
pascal@4618 | 30 SUBLEVEL:=$3 |
pascal@4618 | 31 KERNELRELEASE:=$KERNEL_VERSION-slitaz |
pascal@4618 | 32 EOF |
jozee@4613 | 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 |
jozee@4613 | 34 make DESTDIR="$PWD/_pkg" install |
jozee@4613 | 35 } |
jozee@4613 | 36 |
jozee@4613 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4613 | 38 genpkg_rules() |
jozee@4613 | 39 { |
jozee@4613 | 40 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
jozee@4613 | 41 EXTRAVERSION=_$KERNEL_VERSION |
jozee@4613 | 42 |
jozee@4613 | 43 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/ |
jozee@4613 | 44 |
jozee@4613 | 45 find $_pkg/lib/modules/$KERNEL_VERSION-slitaz -name "*.ko" -exec lzma e '{}' '{}'.gz \; 2> /dev/null |
jozee@4613 | 46 find $_pkg/lib/modules/$KERNEL_VERSION-slitaz -name "*.ko" -exec rm '{}' \; |
jozee@4613 | 47 cp -a $_pkg/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/ |
jozee@4613 | 48 } |
jozee@4613 | 49 |
jozee@4613 | 50 post_install() |
jozee@4613 | 51 { |
jozee@4613 | 52 echo "Processing post-install commands..." |
jozee@4613 | 53 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz |
jozee@4613 | 54 } |
jozee@4613 | 55 |
jozee@4613 | 56 post_remove() |
jozee@4613 | 57 { |
jozee@4613 | 58 echo "Processing post-remove commands..." |
jozee@4613 | 59 depmod -a |
jozee@4613 | 60 } |