blob: 70358e33117ea3ce585935997ce06c8b6135ebd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Tomasz Zok <tomasz(dot)zok(at)gmail(dot)com>
# Contributor: KafCoppelia <k740677208@gmail.com>
_pkgbase=rtl8852au
pkgname=rtl8852au-dkms-git
pkgver=r100.865ab0f
pkgrel=3
pkgdesc="The WiFi driver for Realtek chipsets RTL8832AU and RTL8852AU (e.g. ASUS USB-AX56, D-Link DW-AX1850, TP-Link AX1800) "
arch=('x86_64')
url="https://github.com/lwfinger/rtl8852au"
license=('GPL2')
depends=('dkms' 'bc' 'linux-headers' 'usb_modeswitch')
makedepends=('git')
conflicts=("${_pkgbase}")
source=('git+https://github.com/lwfinger/rtl8852au'
'40-rtl8852au-usb-modeswitch.rules'
'diff.patch')
sha256sums=('SKIP'
'0764d1a35efc5434a43e685f5a1ea97019b10e124f04ddadbe89b7eb2ec88998'
'11517ec26bac412d3176d12044cfb11284147d09d629c23289362db433adbed7')
pkgver() {
cd ${_pkgbase}
( set -o pipefail
git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
)
}
prepare() {
cd ${srcdir}/${_pkgbase}
patch -Np1 -i ${srcdir}/diff.patch
}
package() {
# Copy dkms.conf
install -Dm644 ${srcdir}/${_pkgbase}/dkms.conf ${pkgdir}/usr/src/${_pkgbase}-${pkgver}/dkms.conf
# Copy sources (including Makefile)
cp -r ${srcdir}/${_pkgbase}/* ${pkgdir}/usr/src/${_pkgbase}-${pkgver}/
# Copy udev rule preventing from showing the USB dongle as mass storage
install -Dm644 40-${_pkgbase}-usb-modeswitch.rules ${pkgdir}/etc/udev/rules.d/40-${_pkgbase}-usb-modeswitch.rules
}
|