diff options
Diffstat (limited to 'libre')
-rw-r--r-- | libre/bbswitch-parabola/PKGBUILD | 28 |
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') |