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-06-13 23:08:54 +03:00
|
|
|
pkgver=5.2.20.2.r878.gc070e02
|
2023-11-10 20:07:06 +02:00
|
|
|
_pkgver=5.2.20.2
|
2024-06-13 23:08:54 +03:00
|
|
|
pkgrel=5
|
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-06-13 23:08:54 +03:00
|
|
|
source=('git+https://github.com/OpenHD/rtl8812au.git' 'fix-6.9.0-build.patch')
|
|
|
|
sha256sums=('SKIP' 'a527f89fecb9fbf8249e2e72859560f4381376873bb8a408047870df07a8d79b')
|
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"
|
2024-06-13 23:08:54 +03:00
|
|
|
patch -p1 -i "$srcdir/fix-6.9.0-build.patch"
|
2024-03-02 14:06:49 +02:00
|
|
|
}
|
|
|
|
|
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"
|
|
|
|
}
|