diff options
author | PÁLI Gábor János <pali.gabor@gmail.com> | 2022-04-30 19:50:02 +0200 |
---|---|---|
committer | PÁLI Gábor János <pali.gabor@gmail.com> | 2022-04-30 19:50:02 +0200 |
commit | dac84c054786b6eb6f329662748d9a199b05f2df (patch) | |
tree | 4c6f12c1e2d6742787dfe4184c3df1f1eaa6ac02 | |
parent | db3d1c0a3a9240204c1ecbc237023bb517f146fd (diff) | |
download | freebsd-wifibox-alpine-dac84c054786b6eb6f329662748d9a199b05f2df.zip |
Add optional package for the backported `rtw89` driver.
-rw-r--r-- | aports/rtw89/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/aports/rtw89/APKBUILD b/aports/rtw89/APKBUILD new file mode 100644 index 0000000..e0617fb --- /dev/null +++ b/aports/rtw89/APKBUILD @@ -0,0 +1,33 @@ +# Maintainer: Gabor Pali <pali.gabor@gmail.com> + +pkgname='rtw89' +pkgver=20220421 +pkgrel=0 +_gitrev='da9d01e4f08cdaa862bff0ec5dad73600016a4dc' +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" -j 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=" +fabd29e642082543de1671dfd56f60543b6e81ad1e75abd48c45c19fe998596268f1b1986f2a84167d497c9a83780b4d0321d60b0c87cc28baef7de025550055 da9d01e4f08cdaa862bff0ec5dad73600016a4dc.zip +" |