mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-16 06:30:24 +08:00
49 lines
1.4 KiB
Bash
49 lines
1.4 KiB
Bash
|
|
pkgname=ndiswrapper-dkms
|
|
pkgver=1.61
|
|
pkgrel=19
|
|
pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by vendors. For linux-testing."
|
|
license=('GPL')
|
|
arch=('x86_64')
|
|
url="http://sourceforge.net/projects/ndiswrapper/"
|
|
depends=("dkms")
|
|
makedepends=("linux-headers=4.18.12")
|
|
provides=('ndiswrapper')
|
|
conflicts=('ndiswrapper')
|
|
replaces=('ndiswrapper')
|
|
makedepends=('linux-headers')
|
|
source=("http://downloads.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-$pkgver.tar.gz"
|
|
'linux-4.11.patch'
|
|
'linux-4.13.patch'
|
|
'linux-4.15.patch'
|
|
'dkms.conf')
|
|
sha1sums=('213854ca8a83f9b5972db8fa873d346124e4bcb5'
|
|
'4d1866b495a7929a3d21b6aebf0fa150702668b6'
|
|
'09b308bbc948acc59d33882524b53ce210bb1848'
|
|
'4a47e255e27767dd87757f159eb1fdf1ddaf4993'
|
|
'f00657ca9177cea9bc77d7084c3c56b3728050a3')
|
|
|
|
prepare() {
|
|
cd ndiswrapper-$pkgver
|
|
|
|
patch -p1 -i ../linux-4.11.patch
|
|
patch -p2 -i ../linux-4.13.patch
|
|
patch -p1 -i ../linux-4.15.patch
|
|
|
|
sed -i -e 's|strnicmp|strncasecmp|' driver/ndis.c
|
|
sed -i "/modinfo/s/s/usr\//" driver/Makefile
|
|
}
|
|
|
|
build() {
|
|
cd ndiswrapper-$pkgver
|
|
make -C utils
|
|
}
|
|
|
|
package() {
|
|
cd ndiswrapper-$pkgver
|
|
mkdir -p "$pkgdir"/usr/src
|
|
cp -RL ./driver "$pkgdir"/usr/src/ndiswrapper-$pkgver
|
|
cp "$srcdir"/dkms.conf "$pkgdir"/usr/src/ndiswrapper-$pkgver
|
|
make -C utils sbindir=/usr/bin usrsbindir=/usr/bin DESTDIR="$pkgdir" install
|
|
}
|