summaryrefslogtreecommitdiff
path: root/aports/rtw89/APKBUILD
blob: 6fe3ef3568b59adf4e64201953f377042a3dab1d (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
# Maintainer: Gabor Pali <pali.gabor@gmail.com>

pkgname='rtw89'
pkgver=20221010
pkgrel=0
_gitrev='f11fadeab69a1e747318b1d7fd2ad58fa9518ab1'
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 | 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 
  install -p -D -m 644 "$_srcdir"/rtw8852a_fw.bin -t "$pkgdir"/lib/firmware/rtw89
}

sha512sums="
7945db2501ce89fa2fe9867b56bea5d5cc0b66c21a14feae1dec6b5beda5dd9225e2c2aa75aef63bcf53020f78c8f006ca3ca5d747d5516c4806b03a642d4237  f11fadeab69a1e747318b1d7fd2ad58fa9518ab1.zip
"