summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5d2762651d69f1443bb41feaed91a3442802163b (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
# Maintainer: Banned Patriot <bannedpatriot@protonmail.com>
pkgname=rtl8822bu-dkms
_pkgbase=rtl8822bu
pkgver=5.8.7.4
pkgrel=1
pkgdesc="Kernel module for Edimax EW7822ULC USB3, Asus AC53 Nano USB 802.11ac and TP-Link Archer T4U adapter. Patched for Linux v5.12."
url="https://github.com/BannedPatriot/rtl8822bu"
license=("unknown")
arch=('armv7h' 'x86_64')
makedepends=('git')
depends=('dkms')
source=('git+https://github.com/BannedPatriot/rtl8822bu.git#tag=5.8.7.4'  
        'dkms.conf'
        )
sha256sums=('SKIP'
            '09dbc7aa2954d0b66bf8d6676b996f154821107b72e4c0e901a14b70c64fbbe3')
install="${pkgname}.install"
prepare() {
  sed -e "s/@PKGNAME@/${_pkgbase}/" \
      -e "s/@PKGVER@/${pkgver}/" \
      -i "${srcdir}/dkms.conf"      
  (cd ${srcdir}/${_pkgbase} )
}
package() {
  install -D "${srcdir}/dkms.conf" "${pkgdir}/usr/src/${_pkgbase}-${pkgver}/dkms.conf"
  cp -r "${srcdir}/${_pkgbase}"/* "${pkgdir}/usr/src/${_pkgbase}-${pkgver}"
}