Commit b9edb67d authored by Kevin Daudt's avatar Kevin Daudt 💻
Browse files

testing/rtl8821ce-module-linux-lts: new aport

parent b30c115c
Pipeline #7324 passed with stages
in 59 seconds
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
_kver=5.4.18
_krel=0
_flavor="$FLAVOR"
[ -z "$_flavor" ] && _flavor=lts
pkgname="rtl8821ce-module-linux-lts"
pkgver="0_git20200211"
_commit=74c454f7af8ec3426cc6a937f37c562c10f49bd2
pkgrel=0
pkgdesc="Wifi drivers for Realtek 8821ce"
url="https://github.com/tomaspinho/rtl8821ce"
arch="x86_64 x86" # Only builds on these platforms
license="GPL-2.0-only"
makedepends="linux-lts-dev"
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/tomaspinho/rtl8821ce/archive/$_commit.tar.gz"
builddir="$srcdir/rtl8821ce-$_commit"
prepare() {
default_prepare
if [ -z "$FLAVOR" ]; then
(
. "$startdir"/../../main/linux-$_flavor/APKBUILD
[ "$_kver" != "$pkgver" ] && die "please update _kver to $pkgver"
[ "$_krel" != "$pkgrel" ] && die "please update _krel to $pkgrel"
return 0
)
fi
}
build() {
make KVER=$_kver-$_krel-$_flavor \
MODULES_DIR="/lib/modules/$_kver-$_krel-$_flavor"
}
package() {
install -Dm0644 8821ce.ko \
"$pkgdir"/lib/module/$_kver-$_krel-$_flavor/extra/8821ce.ko
}
sha512sums="8de5f2ddfa84a72e4ff3d2a1450201b628c82dc4a163b9329f448f4088510f63ff5997da51d2fbb2be306bed752fa77d9d4920cb08d4fb410c82b578d995f19c rtl8821ce-module-linux-lts-0_git20200211.tar.gz"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment