wok-next diff linmodem-hsfmodem/receipt @ rev 10742
Up: slitaz-doc (4.2) - New style and include all doc (no more in locale pack)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 30 02:35:50 2011 +0200 (2011-05-30) |
parents | 61b2df5c8f90 |
children |
line diff
1.1 --- a/linmodem-hsfmodem/receipt Thu Mar 03 21:01:37 2011 +0100 1.2 +++ b/linmodem-hsfmodem/receipt Mon May 30 02:35:50 2011 +0200 1.3 @@ -6,39 +6,38 @@ 1.4 CATEGORY="non-free" 1.5 SHORT_DESC="Driver for the Conexant (formerly Rockwell) HSF Softmodem family." 1.6 MAINTAINER="orphaned@sliatz.org" 1.7 -DEPENDS="module-init-tools perl usbutils" 1.8 -BUILD_DEPENDS="cpio linux lzma linux-module-headers util-linux-ng-getopt" 1.9 TARBALL="$SOURCE-$VERSION.tar.gz" 1.10 WEB_SITE="http://www.linuxant.com/drivers" 1.11 WGET_URL="http://www.linuxant.com/drivers/hsf/full/archive/$SOURCE-$VERSION/$TARBALL" 1.12 1.13 +DEPENDS="module-init-tools perl usbutils" 1.14 +BUILD_DEPENDS="cpio linux lzma linux-module-headers util-linux-ng-getopt \ 1.15 +usbutils-dev" 1.16 + 1.17 # Rules to configure and make the package. 1.18 compile_rules() 1.19 { 1.20 - KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.21 cd $src 1.22 echo "Apply $file..." 1.23 patch -p1 < $(ls $stuff/$SOURCE-*.diff) || return 1 1.24 - grep -rl 'uname -r' . | xargs sed -i "s/uname -r/echo $KERNEL_VERSION/g" 1.25 + grep -rl 'uname -r' . | xargs sed -i "s/uname -r/echo $kvers/g" 1.26 # build driver 1.27 echo "Build driver" 1.28 - make ROOT=$PWD/_pkg install 1.29 + make ROOT=$DESTDIR install 1.30 # build kernel modules 1.31 - echo "Running $PWD/_pkg/usr/sbin/hsfconfig -ka" 1.32 - $PWD/_pkg/usr/sbin/hsfconfig -ka 1.33 - echo "done." 1.34 - [ -d /lib/modules/$KERNEL_VERSION/extra ] 1.35 + echo "Running $DESTDIR/usr/sbin/hsfconfig -ka..." 1.36 + $DESTDIR/usr/sbin/hsfconfig -ka 1.37 + echo " OK" 1.38 } 1.39 1.40 # Rules to gen a SliTaz package suitable for Tazpkg. 1.41 genpkg_rules() 1.42 { 1.43 - KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` 1.44 # kernel modules 1.45 - mkdir -p $fs/lib/modules/$KERNEL_VERSION 1.46 - cp -a /lib/modules/$KERNEL_VERSION/extra $fs/lib/modules/$KERNEL_VERSION 1.47 + mkdir -p $fs/lib/modules/$kvers 1.48 + cp -a /lib/modules/$kvers/extra $fs/lib/modules/$kvers 1.49 # cleaning up 1.50 - rm -r /lib/modules/$KERNEL_VERSION/extra 1.51 + rm -r /lib/modules/$kvers/extra 1.52 # command files 1.53 mkdir -p $fs/usr 1.54 cp -a $_pkg/usr/sbin $fs/usr