summaryrefslogtreecommitdiff
path: root/libre/bbswitch/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/bbswitch/PKGBUILD')
-rw-r--r--libre/bbswitch/PKGBUILD46
1 files changed, 23 insertions, 23 deletions
diff --git a/libre/bbswitch/PKGBUILD b/libre/bbswitch/PKGBUILD
index 71b1d982f..600902794 100644
--- a/libre/bbswitch/PKGBUILD
+++ b/libre/bbswitch/PKGBUILD
@@ -6,42 +6,39 @@
# Contributor: Márcio Silva <coadde@parabola.nu>
_kernelname=
-_basekernel=3.16
-_archrel=15
-_parabolarel=2
if [[ ${_kernelname} == "" ]]; then
- _basekernel=${_basekernel}
- _archrel=${_archrel}
- _parabolarel=${_parabolarel}
+ _basekernel=3.16
+ _archrel=15
+ _parabolarel=2
elif [[ ${_kernelname} == -lts ]]; then
_basekernel=3.14
- _archrel=${_archrel}
- _parabolarel=${_parabolarel}
+ _archrel=1
+ _parabolarel=1
elif [[ ${_kernelname} == -grsec ]]; then
- _basekernel=3.15
- _archrel=${_archrel}
- _parabolarel=${_parabolarel}
+ _basekernel=3.16
+ _archrel=1
+ _parabolarel=1
elif [[ ${_kernelname} == -lts-grsec ]]; then
_basekernel=3.14
- _archrel=${_archrel}
- _parabolarel=${_parabolarel}
+ _archrel=1
+ _parabolarel=1
elif [[ ${_kernelname} == -lts-knock ]]; then
_basekernel=3.10
- _archrel=${_archrel}
- _parabolarel=${_parabolarel}
+ _archrel=1
+ _parabolarel=1
elif [[ ${_kernelname} == -rt ]]; then
_basekernel=3.14
- _archrel=${_archrel}
- _parabolarel=${_parabolarel}
+ _archrel=1
+ _parabolarel=1
elif [[ ${_kernelname} == -pae ]]; then
- _basekernel=${_basekernel}
- _archrel=${_archrel}
- _parabolarel=${_parabolarel}
+ _basekernel=3.16
+ _archrel=1
+ _parabolarel=1
elif [[ ${_kernelname} == -xen ]]; then
- _basekernel=${_basekernel}
- _archrel=${_archrel}
- _parabolarel=${_parabolarel}
+ _basekernel=3.16
+ _archrel=1
+ _parabolarel=1
fi
_pkgname=bbswitch
@@ -61,6 +58,9 @@ makedepends=("linux-libre${_kernelname}-headers>=${_basekernel}" "linux-libre${_
replaces=("${_pkgname}-libre${_kernelname}" "${_pkgname}-parabola${_kernelname}")
conflicts=("${_pkgname}-libre${_kernelname}" "${_pkgname}-parabola${_kernelname}")
+if [[ ${_kernelname} != "" ]]; then
+ provides=("${_pkgname}")
+fi
install='kmod.install'
source=("https://github.com/Bumblebee-Project/bbswitch/archive/v${pkgver}.tar.gz")