summaryrefslogtreecommitdiff
path: root/aports/rtl8821ce/APKBUILD
blob: 4909833da111bfd83d04b74a7d29c0c8095706b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Gabor Pali <pali.gabor@gmail.com>

pkgname='rtl8821ce'
pkgver=20240120
pkgrel=06060220000
_gitrev='66983b69120a13699acf40a12979317f29012111'
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 -name '*-lts' | 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="
a19f1ba48908af617b2158dfb7ac5ba53e575ca63c21bf5eeb754eb354f98f92ae841eba3e356b0241c4ed10a32a22f939132b30aa763213e449cbf70720d266  66983b69120a13699acf40a12979317f29012111.zip
"