wok-current annotate ndiswrapper-driver/receipt @ rev 25477

icedtea6-jdk: find output to variable
author Hans-G?nter Theisgen
date Thu Oct 13 17:53:47 2022 +0100 (2022-10-13)
parents 6da3642bd96b
children 2d4208bebf51
rev   line source
erjo@1851 1 # SliTaz package receipt.
erjo@1851 2
erjo@1851 3 PACKAGE="ndiswrapper-driver"
Hans-G?nter@24962 4 VERSION="1.63"
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"
pascal@25457 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
pascal@24402 19 # What is the latest version available today?
pascal@24402 20 current_version()
pascal@24402 21 {
pascal@24402 22 wget -O - https://sourceforge.net/projects/ndiswrapper/files/stable/ 2>/dev/null | \
pascal@24402 23 sed '/scope="row/!d;s|.*/ndiswrapper-||;s|.tar.*||;q'
pascal@24402 24 }
pascal@24402 25
erjo@1851 26 # Rules to configure and make the package.
erjo@1851 27 compile_rules()
erjo@1851 28 {
pascal@20267 29 sed -i 's|error Multiple|echo Multiple|' driver/Makefile
Hans-G?nter@21530 30
Hans-G?nter@24962 31 make KBUILD=/usr/src/linux \
Hans-G?nter@24962 32 KVER=linux-${kvers}-slitaz
Hans-G?nter@21530 33
pascal@15586 34 xz driver/ndiswrapper.ko
erjo@1851 35 }
erjo@1851 36
erjo@1851 37 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@1851 38 genpkg_rules()
erjo@1851 39 {
pankso@15855 40 EXTRAVERSION=_${kvers}
Hans-G?nter@21530 41 mkdir -p $fs/sbin
Hans-G?nter@21530 42 mkdir -p $fs/lib/modules/${kvers}-slitaz/kernel/misc
al@18741 43
al@18741 44 # Install utilities
Hans-G?nter@21530 45 install -o root -m 0755 $src/utils/loadndisdriver \
Hans-G?nter@21530 46 $fs/sbin/
pankso@15855 47 install -o root -m 0644 $src/driver/ndiswrapper.ko.xz \
pankso@15855 48 $fs/lib/modules/${kvers}-slitaz/kernel/misc/ndiswrapper.ko.xz
erjo@1851 49 }
pascal@20396 50
pascal@20396 51 # Post install/remove commands for Tazpkg.
pascal@20396 52 post_install()
pascal@20396 53 {
pascal@20396 54 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
pascal@20396 55 }
pascal@20396 56
pascal@20396 57 post_remove()
pascal@20396 58 {
pascal@20396 59 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
pascal@20396 60 }