summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-08-28 02:35:18 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-08-28 02:35:18 -0300
commit11a3b43f31fedd4346bd6e9b0651c022b813eba9 (patch)
treecd0f7444a6a1037d056d98b6861e2cc60c23113b /libre
parent9ff0faff02e939e13c7671b2ebbac34fdb9c6aa6 (diff)
downloadabslibre-11a3b43f31fedd4346bd6e9b0651c022b813eba9.tar.gz
abslibre-11a3b43f31fedd4346bd6e9b0651c022b813eba9.tar.bz2
abslibre-11a3b43f31fedd4346bd6e9b0651c022b813eba9.zip
bbswitch-parabola: add multi kernels
Diffstat (limited to 'libre')
-rw-r--r--libre/bbswitch-parabola/PKGBUILD28
1 files changed, 26 insertions, 2 deletions
diff --git a/libre/bbswitch-parabola/PKGBUILD b/libre/bbswitch-parabola/PKGBUILD
index 410eeb441..bdac305f6 100644
--- a/libre/bbswitch-parabola/PKGBUILD
+++ b/libre/bbswitch-parabola/PKGBUILD
@@ -5,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')