summaryrefslogtreecommitdiff
path: root/libre/tp_smapi
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-09 20:54:54 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-09 20:54:54 -0300
commit623b7b18399485c299592b91a1ba62a33a5611c0 (patch)
treebbadd0ab57b6921ecbef018d9c1e5ec70147fc1b /libre/tp_smapi
parentd18cd444c935f89c80c8b15e4f37730f48c343f6 (diff)
kernel module packages: keep more generic
Diffstat (limited to 'libre/tp_smapi')
-rw-r--r--libre/tp_smapi/PKGBUILD40
1 files changed, 21 insertions, 19 deletions
diff --git a/libre/tp_smapi/PKGBUILD b/libre/tp_smapi/PKGBUILD
index fb56d06c8..46c30465c 100644
--- a/libre/tp_smapi/PKGBUILD
+++ b/libre/tp_smapi/PKGBUILD
@@ -11,40 +11,39 @@
# Contributor: Márcio Silva <coadde@parabola.nu>
_kernelname=
-_basekernel=3.16
if [[ ${_kernelname} == "" ]]; then
- _basekernel=${_basekernel}
+ _basekernel=3.16
_archrel=52
_parabolarel=2
elif [[ ${_kernelname} == -lts ]]; then
_basekernel=3.14
- _archrel=29
- _parabolarel=2
+ _archrel=30
+ _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=tp_smapi
@@ -64,6 +63,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/downloads/evgeni/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")