summaryrefslogtreecommitdiff
path: root/aports/rtw89-edge/APKBUILD
blob: 94f4c0d3869aa1a055055c2804e6b273320ad072 (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-edge'
pkgver=20240310
pkgrel=06080010000
_gitrev='48680abfeb843330d385384bd8edde259a241147'
pkgdesc='Driver for Realtek 8852AE, an 802.11ax device (edge)'
arch="x86_64"
url='https://github.com/lwfinger/rtw89'
license="GPL-2.0"
makedepends="linux-edge-dev xz bash"
depends="linux-edge"
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 '*-edge' | 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="
3c92a0502d398ccb262fa92231fe43264eb7de3da9a57a74e265cf8422134bf5fee3b4de2cd1aa75946b4796f1b025e1b232d0f8710b04f7f3cbd3e0a9ddd9d8  48680abfeb843330d385384bd8edde259a241147.zip
"