wok-6.x view ndiswrapper-driver/receipt @ rev 17104

Add libsdl2 (thanks necrophcodr)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 30 14:16:28 2014 +0000 (2014-08-30)
parents 293a7bce6d7f
children 6fab3264ba87
line source
1 # SliTaz package receipt.
3 PACKAGE="ndiswrapper-driver"
4 VERSION="1.59"
5 CATEGORY="system-tools"
6 SHORT_DESC="Add Windows network drivers support to Linux kernel."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL"
9 SOURCE="ndiswrapper"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://ndiswrapper.sourceforge.net/joomla/"
12 WGET_URL="$SF_MIRROR/$SOURCE/stable/$TARBALL"
13 TAGS="windows wireless network"
15 DEPENDS="linux"
16 BUILD_DEPENDS="linux-module-headers xz"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 make KBUILD=/usr/src/linux KVER=linux-${kvers}-slitaz
22 xz driver/ndiswrapper.ko
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 EXTRAVERSION=_${kvers}
29 mkdir -p $fs/usr/sbin $fs/sbin $fs/lib/modules/${kvers}-slitaz/kernel/misc
31 # Install utilities
32 install -o root -m 0755 $src/utils/loadndisdriver $fs/sbin/
33 install -o root -m 0644 $src/driver/ndiswrapper.ko.xz \
34 $fs/lib/modules/${kvers}-slitaz/kernel/misc/ndiswrapper.ko.xz
35 }
37 post_install()
38 {
39 echo "Processing post-install commands..."
40 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
41 }
43 post_remove()
44 {
45 echo "Processing post-remove commands..."
46 chroot "$root/" depmod -a ${EXTRAVERSION#_}-slitaz
47 }