summaryrefslogtreecommitdiff
path: root/libre/bbswitch-parabola/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/bbswitch-parabola/PKGBUILD')
-rw-r--r--libre/bbswitch-parabola/PKGBUILD29
1 files changed, 26 insertions, 3 deletions
diff --git a/libre/bbswitch-parabola/PKGBUILD b/libre/bbswitch-parabola/PKGBUILD
index 9a664f09c..bdac305f6 100644
--- a/libre/bbswitch-parabola/PKGBUILD
+++ b/libre/bbswitch-parabola/PKGBUILD
@@ -1,4 +1,3 @@
-# $Id: PKGBUILD 116821 2014-08-04 07:12:07Z tpowa $
# Maintainer (Arch): Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor (Arch): M0Rf30
# Contributor (Arch): Samsagax <samsagax@gmail.com>
@@ -6,13 +5,37 @@
# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
# Contributor: Márcio Silva <coadde@parabola.nu>
-_basekernel=3.16
_kernelname=
+_basekernel=3.16
+_pkgrel=15.2
+
+if [[ ${_kernelname} == "" ]]; then
+ _basekernel=${_basekernel}
+ _pkgrel=${_pkgrel}
+elif [[ ${_kernelname} == -lts ]]; then
+ _basekernel=3.14
+ _pkgrel=${_pkgrel}
+elif [[ ${_kernelname} == -grsec ]]; then
+ _basekernel=3.15
+ _pkgrel=${_pkgrel}
+elif [[ ${_kernelname} == -lts-knock ]]; then
+ _basekernel=3.10
+ _pkgrel=${_pkgrel}
+elif [[ ${_kernelname} == -rt ]]; then
+ _basekernel=3.14
+ _pkgrel=${_pkgrel}
+elif [[ ${_kernelname} == -pae ]]; then
+ _basekernel=${_basekernel}
+ _pkgrel=${_pkgrel}
+elif [[ ${_kernelname} == -xen ]]; then
+ _basekernel=${_basekernel}
+ _pkgrel=${_pkgrel}
+fi
_pkgname=bbswitch
pkgname=${_pkgname}${_kernelname}-parabola
pkgver=0.8
-pkgrel=15.2
+pkgrel=${_pkgrel}
_extramodules=extramodules-${_basekernel}${_kernelname}
pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus laptops (built for the linux-libre${_kernelname} kernel package)"
arch=('i686' 'x86_64' 'mips64el')