# Maintainer: Gabor Pali pkgname='rtl8821ce' pkgver=20220911 pkgrel=0 _gitrev='50c1b120b06a3b0805e23ca9a4dbd274d74bb305' pkgdesc='Driver for Realtek 8821CE, an 802.11ac device' arch="x86_64" url='https://github.com/tomaspinho/rtl8821ce' license="GPL-2.0" makedepends="linux-lts-dev xz" depends="linux-lts" install= options="!check !strip" source="https://github.com/tomaspinho/rtl8821ce/archive/${_gitrev}.zip" _kver=$(cd /usr/src/ && find . -mindepth 1 -maxdepth 1 -type d | sed 's!./linux-headers-!!') _kbase="/lib/modules/${_kver}" _srcdir="$srcdir/rtl8821ce-$_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/rtl8821ce } sha512sums=" ebc215d9f473e5ba5ca290b14e462d19cc821ca0100011fe819f3856e18d6fe71327efed4b9baabec3889dca4d9bbe5aae437448d8a71f876b878d9adcbf8c04 50c1b120b06a3b0805e23ca9a4dbd274d74bb305.zip "