# Maintainer: Gabor Pali pkgname='rtw89' pkgver=20220630 pkgrel=0 _gitrev='f3ea32728b688c44e040cf2fb98329fae5a130f5' 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=" 4d7ecf047ba32d24a16cbb7a908e4447e5011b9d3b92ff7184b85756e419a148ee70276e6a90ab0c38d0bc285bbf197423ce1cb2937abc7b355bb84f68675075 f3ea32728b688c44e040cf2fb98329fae5a130f5.zip "