blob: c5b5da5320a5de930df79fd4b167baf067cc8223 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: 'Patryk Kowalczyk <patryk at kowalczyk dot ws>'
_srcname=iwlwifi-lar-disable
pkgname=${_srcname}-dkms
pkgver=6.11.1
pkgrel=1
pkgdesc="Intel wireless chips driver from linux ($pkgver) with patch for lar_disable parameter 5GHz band support"
arch=('any')
url="https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi"
license=('GPL2')
depends=('dkms')
source=("https://www.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/linux-${pkgver}.tar.xz"
"dkms.conf"
"c545b26dd567a638d62ca29490e9e2e6d04a8b6b.patch")
md5sums=('28d4c44c62414ef7f0c8aa1fd5667937'
'730652a6fd46eaa97c001c01ea14dc91'
'29336370f1863ad94c15dc3fbef9b63c')
options=(!strip)
prepare() {
cd "$srcdir/linux-$pkgver"
cd drivers/net/wireless/intel/iwlwifi
# https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1910510.html
sed -i 's|$(srctree)/||' {d,m}vm/Makefile
cd -
patch -p1 -i "$srcdir/c545b26dd567a638d62ca29490e9e2e6d04a8b6b.patch"
}
package() {
# Install dkms.conf
install -Dm644 dkms.conf "${pkgdir}/usr/src/${_srcname}-${pkgver}/dkms.conf"
# Install sources (including Makefile)
cp -rT "linux-${pkgver}/drivers/net/wireless/intel/iwlwifi" "${pkgdir}/usr/src/${_srcname}-${pkgver}"
# Set name and version
sed -e "s/@PKGNAME@/${_srcname}/" \
-e "s/@PKGVER@/${pkgver}/" \
-i "${pkgdir}"/usr/src/${_srcname}-${pkgver}/dkms.conf
}
|