35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
# Maintainer: Rihards Skuja <rihards at skuja dot eu>
|
|
|
|
pkgname=rtl8812au-openhd-dkms-git
|
|
_modname=88XXau_ohd
|
|
pkgver=5.2.20.2.r855.g28580eb
|
|
_pkgver=5.2.20.2
|
|
pkgrel=4
|
|
pkgdesc='Realtek RTL88xxAU WiFi USB driver (with OpenHD patches)'
|
|
arch=(any)
|
|
url='https://github.com/OpenHD/rtl8812au'
|
|
license=(GPL2)
|
|
depends=('dkms' 'bc')
|
|
makedepends=('git')
|
|
source=('git+https://github.com/OpenHD/rtl8812au.git' '0001-Update-beacon-change-signature-to-fix-build-on-recen.patch')
|
|
sha256sums=('SKIP'
|
|
'040518c8e58cadec1cdafa147d916be25c4c66eb0508726ef6448896e5d4a917')
|
|
|
|
pkgver() {
|
|
cd "${srcdir}/rtl8812au"
|
|
printf '%s.r%s.g%s' "${_pkgver}" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
|
|
}
|
|
|
|
prepare() {
|
|
cd "${srcdir}/rtl8812au"
|
|
patch -p1 -i "$srcdir/0001-Update-beacon-change-signature-to-fix-build-on-recen.patch"
|
|
}
|
|
|
|
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"
|
|
}
|