2023-11-10 20:07:06 +02:00
|
|
|
# Maintainer: Rihards Skuja <rihards at skuja dot eu>
|
|
|
|
|
|
|
|
pkgname=rtl8812au-openhd-dkms-git
|
2024-01-03 21:03:02 +02:00
|
|
|
_modname=88XXau_ohd
|
2024-03-02 14:06:49 +02:00
|
|
|
pkgver=5.2.20.2.r849.gf21bbe9
|
2023-11-10 20:07:06 +02:00
|
|
|
_pkgver=5.2.20.2
|
2024-03-02 14:06:49 +02:00
|
|
|
pkgrel=3
|
2024-01-03 21:03:02 +02:00
|
|
|
pkgdesc='Realtek RTL88xxAU WiFi USB driver (with OpenHD patches)'
|
2023-11-10 20:07:06 +02:00
|
|
|
arch=(any)
|
|
|
|
url='https://github.com/OpenHD/rtl8812au'
|
|
|
|
license=(GPL2)
|
|
|
|
depends=('dkms' 'bc')
|
|
|
|
makedepends=('git')
|
2024-03-02 14:06:49 +02:00
|
|
|
source=('git+https://github.com/OpenHD/rtl8812au.git' '0001-Update-beacon-change-signature-to-fix-build-on-recen.patch')
|
|
|
|
sha256sums=('SKIP' 'b26147fda4d78d8cc8f7d5f5d331e43a1ffeecb5596e703e3da6a7461a0fd7b2')
|
2023-11-10 20:07:06 +02:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "${srcdir}/rtl8812au"
|
2024-01-03 21:03:02 +02:00
|
|
|
printf '%s.r%s.g%s' "${_pkgver}" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
|
2023-11-10 20:07:06 +02:00
|
|
|
}
|
|
|
|
|
2024-03-02 14:06:49 +02:00
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/rtl8812au"
|
|
|
|
patch -p1 -i "$srcdir/0001-Update-beacon-change-signature-to-fix-build-on-recen.patch"
|
|
|
|
}
|
|
|
|
|
2023-11-10 20:07:06 +02:00
|
|
|
package() {
|
|
|
|
cd "${srcdir}/rtl8812au"
|
|
|
|
mkdir -p "${pkgdir}/usr/src/${_modname}-${pkgver}"
|
|
|
|
cp -pr * "${pkgdir}/usr/src/${_modname}-${pkgver}"
|
|
|
|
install -Dm644 dkms.conf "${pkgdir}/usr/src/${_modname}-${pkgver}/dkms.conf"
|
|
|
|
sed -e "s/@PKGVER@/${pkgver}/" -i "${pkgdir}/usr/src/${_modname}-${pkgver}/dkms.conf"
|
|
|
|
}
|