wok-current view ndiswrapper-driver/receipt @ rev 24458
updated gnustep-gui and gnustep-gui-dev again (0.27.0 -> 0.29.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 16 09:58:13 2022 +0100 (2022-02-16) |
parents | 4e6b812a279f |
children | 25d5b5a73d2e |
line source
1 # SliTaz package receipt.
3 PACKAGE="ndiswrapper-driver"
4 VERSION="1.62"
5 CATEGORY="system-tools"
6 TAGS="windows wireless network"
7 SHORT_DESC="Add Windows network drivers support to Linux kernel."
8 MAINTAINER="erjo@slitaz.org"
9 LICENSE="GPL"
10 WEB_SITE="https://sourceforge.net/projects/ndiswrapper"
12 SOURCE="ndiswrapper"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="$SF_MIRROR/$SOURCE/stable/$TARBALL"
16 DEPENDS="linux"
17 BUILD_DEPENDS="linux-module-headers xz"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/ndiswrapper/files/stable/ 2>/dev/null | \
23 sed '/scope="row/!d;s|.*/ndiswrapper-||;s|.tar.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's|error Multiple|echo Multiple|' driver/Makefile
31 make KBUILD=/usr/src/linux KVER=linux-${kvers}-slitaz
33 xz driver/ndiswrapper.ko
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 EXTRAVERSION=_${kvers}
40 mkdir -p $fs/sbin
41 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/misc
43 # Install utilities
44 install -o root -m 0755 $src/utils/loadndisdriver \
45 $fs/sbin/
46 install -o root -m 0644 $src/driver/ndiswrapper.ko.xz \
47 $fs/lib/modules/${kvers}-slitaz/kernel/misc/ndiswrapper.ko.xz
48 }
50 # Post install/remove commands for Tazpkg.
51 post_install()
52 {
53 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
54 }
56 post_remove()
57 {
58 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
59 }