summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Weiss2017-01-28 17:51:02 +0100
committerLuca Weiss2017-01-28 17:51:02 +0100
commitae12ab39093a35130867cb05a0176722af0c953d (patch)
treeac0ba7e1f31748a591d9f6e9224a61f953061b36
parent73e02611f510c61816607f98cd257b47d61a8a22 (diff)
downloadaur-ae12ab39093a35130867cb05a0176722af0c953d.tar.gz
Update for Linux 4.9
-rw-r--r--PKGBUILD10
-rw-r--r--razer-driver-arch.install2
2 files changed, 7 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 873543a1231..711f65a58f7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,6 +10,9 @@ build_kernel_modules=false
pkgbase=razer-drivers
pkgname=('python-razer' 'razer-daemon' 'razer-driver-dkms')
if $build_kernel_modules; then
+ # For kernel update: Update the two variables and the .install file!
+ _linux_current=4.9
+ _linux_next=4.10
pkgname+=('razer-driver-arch')
fi
pkgver=1.1.8
@@ -21,7 +24,7 @@ url="https://github.com/terrycain/razer-drivers"
license=('GPL2')
makedepends=('make' 'python' 'python-setuptools')
if $build_kernel_modules; then
- makedepends+=('linux-headers>=4.8' 'linux-headers<4.9' 'linux>=4.8' 'linux<4.9')
+ makedepends+=("linux-headers>=$_linux_current" "linux-headers<$_linux_next" "linux>=$_linux_current" "linux<$_linux_next")
fi
if [ -z $_commit ]; then
source=("https://github.com/terrycain/razer-drivers/archive/v$pkgver.tar.gz")
@@ -72,8 +75,7 @@ package_razer-driver-dkms() {
}
if $build_kernel_modules; then
-# remember to also adjust the .install files and the package deps below
-_extramodules=extramodules-4.8-ARCH
+_extramodules=extramodules-$_linux_current-ARCH
build() {
if [ -z $_commit ]; then
@@ -90,7 +92,7 @@ build() {
package_razer-driver-arch() {
pkgdesc="An entirely open source driver for managing Razer peripherals on Linux. (for stock 'linux' kernel)"
depends=('udev')
- depends=('linux>=4.8' 'linux<4.9')
+ depends=("linux>=$_linux_current" "linux<$_linux_next")
provides=('RAZER-DRIVERS-MODULES')
conflicts=('RAZER-DRIVERS-MODULES')
install=razer-driver-arch.install
diff --git a/razer-driver-arch.install b/razer-driver-arch.install
index 57bf46761ae..6f0594513aa 100644
--- a/razer-driver-arch.install
+++ b/razer-driver-arch.install
@@ -1,5 +1,5 @@
_depmod() {
- EXTRAMODULES=extramodules-4.8-ARCH
+ EXTRAMODULES=extramodules-4.9-ARCH
depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
}