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-22 12:16:33 +02:00
|
|
|
pkgver=5.2.20.2.r855.g28580eb
|
2023-11-10 20:07:06 +02:00
|
|
|
_pkgver=5.2.20.2
|
2024-03-22 12:16:33 +02:00
|
|
|
pkgrel=4
|
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')
|
2024-03-22 12:16:33 +02:00
|
|
|
sha256sums=('SKIP'
|
|
|
|
'040518c8e58cadec1cdafa147d916be25c4c66eb0508726ef6448896e5d4a917')
|
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"
|
|
|
|
}
|