summaryrefslogtreecommitdiff
path: root/aports/rtw88-edge/APKBUILD
blob: 1660c1b3058d54913965f7dd4b76134e75259c46 (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
# Maintainer: Gabor Pali <pali.gabor@gmail.com>

pkgname='rtw88-edge'
pkgver=20240316
pkgrel=06080010100
_gitrev='986b6e74f94b14369c6b528d7ae76255993c05a5'
pkgdesc='Backport of the Realtek Wifi 5 drivers from the wireless-next repo (edge)'
arch="x86_64"
url='https://github.com/lwfinger/rtw88'
license="GPL-2.0"
makedepends="linux-edge-dev xz"
depends="linux-edge"
install=
options="!check !strip"
source="Makefile.patch
	https://github.com/lwfinger/rtw88/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/rtw88-$_gitrev"
builddir="$_srcdir"

prepare() {
	default_prepare
}

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/rtw88
}

sha512sums="
9450b2ac41745710f33d79f51d646707faf744e876ac69c3780ccec9684dd106046a08da3e59af4faa95c462bf8834a35c020da3124074b902d5d0d0c078e379  Makefile.patch
7ec8d2381ec1cc05b3ecbca4fc472bbc52fc336da26ffa9e322ec104526791b6d512d350f9883ee31879316d02136b2fd56ae86f4477e1fcffa4ae4f54607c89  986b6e74f94b14369c6b528d7ae76255993c05a5.zip
"