summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 455ebe8be65ff2dfbdb2f16e3fef4dd0e8889444 (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
pkgname=nouveau-kepler
pkgver=20160731
pkgrel=1
pkgdesc="nouveau from karolherbst repo with kepler reclocking patches"
arch=('i686' 'x86_64')
url="https://github.com/karolherbst/nouveau"
depends=('linux>=4.7' 'linux<4.8')
makedepends=('git' 'make' 'linux-headers>=4.7' 'linux-headers<4.8')
provides=('nouveau')
source=("git+https://github.com/karolherbst/nouveau.git#branch=stable_reclocking_kepler_v5")
md5sums=('SKIP')
install=nouveau-kepler.install

kernel="$(uname -r)"

pkgver() {
  cd "${srcdir}/nouveau/drm"
  git log -1 --format='%cd' --date=short | tr -d -- '-'
}

build() {
  cd "${srcdir}/nouveau/drm"
  make
}

package() {
  cd "${srcdir}/nouveau/drm/nouveau/"

  install -D -m644 "nouveau.ko" \
      "${pkgdir}/usr/lib/modules/${kernel}/kernel/drivers/gpu/drm/nouveau/nouveau.ko"
}