wok view ndiswrapper-driver/receipt @ rev 3557

librsvg: typo in depends and build_depends
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 23 18:10:53 2009 +0200 (2009-06-23)
parents f306d126580e
children 233ec9b6af94
line source
1 # SliTaz package receipt.
3 PACKAGE="ndiswrapper-driver"
4 VERSION="1.54"
5 CATEGORY="system-tools"
6 SHORT_DESC="Add Windows network drivers support to Linux kernel."
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="linux lzma"
9 BUILD_DEPENDS="slitaz-toolchain"
10 SOURCE="ndiswrapper"
11 TARBALL="$SOURCE-$VERSION.tar.gz"
12 WEB_SITE="http://ndiswrapper.sourceforge.net/joomla/"
13 WGET_URL="http://dfn.dl.sourceforge.net/sourceforge/ndiswrapper/$TARBALL
14 http://puzzle.dl.sourceforge.net/sourceforge/ndiswrapper/$TARBALL"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
20 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
21 if [ ! -d $WOK/linux/linux-$KERNEL_VERSION ]; then
22 tazwok cook linux
23 fi
24 cd $src
25 make KBUILD=$WOK/linux/linux-$KERNEL_VERSION KVER=$KERNEL_VERSION
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
32 EXTRAVERSION=_$KERNEL_VERSION
34 mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
36 # Install utilities
37 install -o root -m 755 $src/utils/loadndisdriver $fs/sbin/
38 strip -s $fs/sbin/load*
40 # Compress and install module
41 #./stuff/gztazmod.sh $fs/lib/modules/$VERSION-slitaz
42 lzma e $src/driver/ndiswrapper.ko \
43 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.gz
44 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.gz
45 chmod O644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/ndiswrapper.ko.gz
46 }
48 post_install()
49 {
50 echo "Processing post-install commands..."
51 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
52 }
54 post_remove()
55 {
56 echo "Processing post-remove commands..."
57 depmod -a
58 }