# Maintainer: Gabor Pali 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 "