rtl8812au: add RTL88xxAU driver with OpenHD patches

This commit is contained in:
Rihards Skuja 2023-11-10 12:09:13 +02:00
parent 1e675e6bd5
commit fda7bd1b99
Signed by: rhssk
GPG Key ID: E3BF73E10BFF4DF3
3 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,15 @@
pkgbase = rtl8812au-openhd-dkms-git
pkgdesc = Patched rtl88xxau drivers for wifibroadcast
pkgver = 5.2.20.2.r781.8f30f65
pkgrel = 1
url = https://github.com/OpenHD/rtl8812au
arch = i686
arch = x86_64
license = GPL2
makedepends = git
depends = dkms
depends = bc
source = git+https://github.com/OpenHD/rtl8812au.git
sha256sums = SKIP
pkgname = rtl8812au-openhd-dkms-git

3
rtl8812au-openhd-dkms-git/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*
!/PKGBUILD
!/.SRCINFO

View File

@ -0,0 +1,28 @@
# Maintainer: Rihards Skuja <rihards at skuja dot eu>
pkgname=rtl8812au-openhd-dkms-git
_pkgbase=88XXau_wfb
pkgver=5.2.20.2.r781.8f30f65
_pkgver=5.2.20.2
pkgrel=1
pkgdesc="Patched rtl88xxau drivers for wifibroadcast"
arch=('i686' 'x86_64')
url="https://github.com/OpenHD/rtl8812au"
license=('GPL2')
depends=('dkms' 'bc')
makedepends=('git')
source=("git+https://github.com/OpenHD/rtl8812au.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/rtl8812au"
printf '%s.r%s.%s' "${_pkgver}" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
package() {
cd "${srcdir}/rtl8812au"
mkdir -p "${pkgdir}/usr/src/${_pkgbase}-${pkgver}"
cp -pr * "${pkgdir}/usr/src/${_pkgbase}-${pkgver}"
install -Dm644 dkms.conf "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/dkms.conf"
sed -e "s/@PKGVER@/${pkgver}/" -i "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/dkms.conf"
}