summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f0d4f48f6eb15ad670b7cee64276b754404303cc (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
# Maintainer:
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contriubtor: Manuel Conzelmann <manolo89@online.de>

_pkgname=rtl8822bu
pkgname=$_pkgname-git
pkgver=r51.9438d45
pkgrel=1
pkgdesc="Driver for the Realtek 822bu chipset."
arch=("x86_64")
url="https://github.com/EntropicEffect/rtl8822bu"
license=('unknown')
depends=("dkms")
makedepends=('linux-headers' 'git' 'bc')
source=("git+https://github.com/EntropicEffect/rtl8822bu.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/$_pkgname"
  make -j`cat /proc/cpuinfo |grep "processor"|wc -l`
}

package() {
  cd "$srcdir/$_pkgname"
  mv 88x2bu.ko $pkgname.ko
  install -m 755 -d $pkgdir/usr/lib/modules/$(uname -r)/
  install -p -m 644 $pkgname.ko $pkgdir/usr/lib/modules/$(uname -r)/
# depmod -b $pkgdir -a
}