# Maintainer: Gabor Pali pkgname='rtw89' pkgver=20221210 pkgrel=0 _gitrev='e834edfe8bee6e27e31c2f783817a9c13ff45665' 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" -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=" f91036196d03cbcee4c48e65d8212249156e2ccd9402c388f0835dbadfe650cc6ad885621e783d9fe3044796320c2e5ef2153f7020d9a6eea9464b9d3b6cb125 e834edfe8bee6e27e31c2f783817a9c13ff45665.zip "