blob: 846dbbd6d96d08a6d2efc8689473da44a9336b48 (
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
|
# Maintainer: Gabor Pali <pali.gabor@gmail.com>
pkgname='rtw89'
pkgver=20230913
pkgrel=1
_gitrev='12837647e34f07e117d90b25708a4f8baa772f50'
pkgdesc='Driver for Realtek 8852AE, an 802.11ax device'
arch="x86_64"
url='https://github.com/lwfinger/rtw89'
license="GPL-2.0"
makedepends="linux-lts-dev xz"
depends="linux-lts"
install=
options="!check !strip"
source="https://github.com/lwfinger/rtw89/archive/${_gitrev}.zip"
_kver=$(cd /usr/src/ && find . -mindepth 1 -maxdepth 1 -type d -name '*-lts' | sed 's!./linux-headers-!!')
_kbase="/lib/modules/${_kver}"
_srcdir="$srcdir/rtw89-$_gitrev"
build() {
make -C "$_srcdir" -j8 KVER="$_kver"
}
package() {
xz "$_srcdir"/*.ko
install -p -D -m 644 "$_srcdir"/*.ko.xz -t "$pkgdir"/lib/modules/"$_kver"/kernel/drivers/net/wireless/realtek/rtw89
}
sha512sums="
7a5318149da92925736cc5fa7746940c83c60ada07442c5e362fe7ee2bb67c3b5de1905f39a7e08be8c752aef23b0807f5e0202d665ed8dcc66149a4983fdb52 12837647e34f07e117d90b25708a4f8baa772f50.zip
"
|