wok annotate ndiswrapper-driver/receipt @ rev 23517

updated python-oauth2 (1.5.211 -> 1.9.0)
author Hans-G?nter Theisgen
date Mon Apr 06 11:26:42 2020 +0100 (2020-04-06)
parents 20661c276bcf
children afae00265386
rev   line source
erjo@1851 1 # SliTaz package receipt.
erjo@1851 2
erjo@1851 3 PACKAGE="ndiswrapper-driver"
Hans-G?nter@21530 4 VERSION="1.62"
erjo@1851 5 CATEGORY="system-tools"
Hans-G?nter@21530 6 TAGS="windows wireless network"
erjo@1851 7 SHORT_DESC="Add Windows network drivers support to Linux kernel."
erjo@1851 8 MAINTAINER="erjo@slitaz.org"
pascal@15584 9 LICENSE="GPL"
Hans-G?nter@21530 10 WEB_SITE="https://sourceforge.net/projects/ndiswrapper"
Hans-G?nter@21530 11
erjo@1851 12 SOURCE="ndiswrapper"
erjo@1851 13 TARBALL="$SOURCE-$VERSION.tar.gz"
pascal@15586 14 WGET_URL="$SF_MIRROR/$SOURCE/stable/$TARBALL"
erjo@1851 15
pascal@15584 16 DEPENDS="linux"
pascal@15584 17 BUILD_DEPENDS="linux-module-headers xz"
pascal@15584 18
erjo@1851 19 # Rules to configure and make the package.
erjo@1851 20 compile_rules()
erjo@1851 21 {
pascal@20267 22 sed -i 's|error Multiple|echo Multiple|' driver/Makefile
Hans-G?nter@21530 23
pankso@15855 24 make KBUILD=/usr/src/linux KVER=linux-${kvers}-slitaz
Hans-G?nter@21530 25
pascal@15586 26 xz driver/ndiswrapper.ko
erjo@1851 27 }
erjo@1851 28
erjo@1851 29 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@1851 30 genpkg_rules()
erjo@1851 31 {
pankso@15855 32 EXTRAVERSION=_${kvers}
Hans-G?nter@21530 33 mkdir -p $fs/sbin
Hans-G?nter@21530 34 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/misc
al@18741 35
al@18741 36 # Install utilities
Hans-G?nter@21530 37 install -o root -m 0755 $src/utils/loadndisdriver \
Hans-G?nter@21530 38 $fs/sbin/
pankso@15855 39 install -o root -m 0644 $src/driver/ndiswrapper.ko.xz \
pankso@15855 40 $fs/lib/modules/${kvers}-slitaz/kernel/misc/ndiswrapper.ko.xz
erjo@1851 41 }
pascal@20396 42
pascal@20396 43 # Post install/remove commands for Tazpkg.
pascal@20396 44 post_install()
pascal@20396 45 {
pascal@20396 46 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
pascal@20396 47 }
pascal@20396 48
pascal@20396 49 post_remove()
pascal@20396 50 {
pascal@20396 51 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
pascal@20396 52 }