[arch-commits] Commit in ndiswrapper/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Jan 14 12:58:14 UTC 2019
Date: Monday, January 14, 2019 @ 12:58:13
Author: felixonmars
Revision: 423068
upgpkg: ndiswrapper 1.61-7
split the binary kernel module to new package
Modified:
ndiswrapper/trunk/PKGBUILD
----------+
PKGBUILD | 29 +++++++----------------------
1 file changed, 7 insertions(+), 22 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-01-14 12:39:40 UTC (rev 423067)
+++ PKGBUILD 2019-01-14 12:58:13 UTC (rev 423068)
@@ -2,16 +2,15 @@
# Contributor: maz-1 <loveayawaka at gmail.com>
pkgbase=ndiswrapper
-pkgname=(ndiswrapper-module ndiswrapper-dkms ndiswrapper)
+pkgname=(ndiswrapper-dkms ndiswrapper)
pkgver=1.61
_extramodules=extramodules-ARCH
-pkgrel=6
+pkgrel=7
pkgdesc="Module for NDIS (Windows Network Drivers) drivers supplied by vendors"
arch=('x86_64')
url="http://sourceforge.net/projects/ndiswrapper/"
license=('GPL')
-makedepends=('linux>=4.20' 'linux-headers>=4.20')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz"
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pgiri/ndiswrapper/archive/v$pkgver.tar.gz"
'dkms.conf' 'linux-4.11.patch' 'linux-4.13.patch' 'linux-4.15.patch')
sha512sums=('85f550f2952137529e0e9855f4d94b7bbc64cbf8a84a31c1b75a4be09d97478a997e64fa6e1ff4e0d29a97a79fc3d4dab1ebdaa9edb3d627a215f47aa4d52823'
'9fce255fc02ddf6e939dc61a5e29c0ea5fa1a31ecc3c390081bc53aa1cd48eddf5db621f0a1cb909634529d4ccc2995eea8827be8eb5807b34dc17e15045ecf4'
@@ -26,40 +25,26 @@
cd ndiswrapper
patch --no-backup-if-mismatch -p1 -i "$srcdir"/linux-4.15.patch
-
- cp -a driver driver-dkms
}
build() {
- _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
-
cd ndiswrapper-$pkgver/ndiswrapper
make -C utils
- make -C driver KVERS_UNAME="$_kernver"
}
-package_ndiswrapper-module() {
- depends=('linux>=4.20' 'linux<4.21')
-
- cd ndiswrapper-$pkgver/ndiswrapper/driver
- install -dm 755 "$pkgdir"/usr/lib/{modules/$_extramodules,modules-load.d}
- install -m 644 ${pkgname%-*}.ko "$pkgdir"/usr/lib/modules/$_extramodules/
- gzip "$pkgdir"/usr/lib/modules/$_extramodules/${pkgname%-*}.ko
-}
-
package_ndiswrapper-dkms() {
depends=('dkms')
- provides=('ndiswrapper-module')
- conflicts=('ndiswrapper-module')
+ provides=('NDISWRAPPER-MODULE')
+ conflicts=('NDISWRAPPER-MODULE')
cd ndiswrapper-$pkgver/ndiswrapper
mkdir -p "$pkgdir"/usr/src
- cp -RL ./driver-dkms "$pkgdir"/usr/src/ndiswrapper-$pkgver
+ cp -RL ./driver "$pkgdir"/usr/src/ndiswrapper-$pkgver
cp "$srcdir"/dkms.conf "$pkgdir"/usr/src/ndiswrapper-$pkgver
}
package_ndiswrapper() {
- depends=('ndiswrapper-module')
+ depends=('NDISWRAPPER-MODULE')
cd ndiswrapper-$pkgver/ndiswrapper
make -C utils sbindir=/usr/bin usrsbindir=/usr/bin DESTDIR="$pkgdir" install
More information about the arch-commits
mailing list