2023-11-10 20:07:06 +02:00
|
|
|
# Maintainer: Rihards Skuja <rihards at skuja dot eu>
|
|
|
|
|
|
|
|
pkgname=rtl88x2bu-openhd-dkms-git
|
2024-01-03 21:03:02 +02:00
|
|
|
_modname=88x2bu_ohd
|
2024-06-13 23:09:20 +03:00
|
|
|
pkgver=5.13.1.r227.g9571cc7
|
2023-11-10 20:07:06 +02:00
|
|
|
_pkgver=5.13.1
|
2024-06-13 23:09:20 +03:00
|
|
|
pkgrel=6
|
2024-01-03 21:03:02 +02:00
|
|
|
pkgdesc='Realtek RTL88x2BU WiFi USB driver (with OpenHD patches)'
|
2023-11-10 20:07:06 +02:00
|
|
|
arch=(any)
|
|
|
|
url='https://github.com/OpenHD/rtl88x2bu'
|
|
|
|
license=(GPL2)
|
|
|
|
depends=(dkms bc)
|
|
|
|
makedepends=(git)
|
2024-06-13 23:09:20 +03:00
|
|
|
source=('git+https://github.com/OpenHD/rtl88x2bu.git' 'fix-6.9.0-build.patch')
|
|
|
|
sha256sums=('SKIP' 'fd6afeadc4b00b74d9ed870fe446ffcc0773d07364fb7ed07f538b0ca07507ed')
|
2023-11-10 20:07:06 +02:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "${srcdir}/rtl88x2bu"
|
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-06-13 23:09:20 +03:00
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/rtl88x2bu"
|
|
|
|
patch -p1 -i "$srcdir/fix-6.9.0-build.patch"
|
|
|
|
}
|
|
|
|
|
2023-11-10 20:07:06 +02:00
|
|
|
package() {
|
|
|
|
cd "${srcdir}/rtl88x2bu"
|
|
|
|
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"
|
|
|
|
mkdir -p "${pkgdir}/usr/lib/modprobe.d/"
|
|
|
|
echo "blacklist rtw88_8822bu" > "${pkgdir}/usr/lib/modprobe.d/rtw8822bu.conf"
|
|
|
|
}
|