# Maintainer: Gabor Pali pkgname='rtl8821ce' pkgver=20230915 pkgrel=0 _gitrev='0d2c745d7ef023bccd63cf79e98556f0b5a39024' 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=" 48b0ce599f580275aa836c9dd046721e65733831608104fde4b7a533defd533b124a9d28a1080473556723fb29eb38595e035c65098740f077c9900943a79e22 0d2c745d7ef023bccd63cf79e98556f0b5a39024.zip "