diff options
-rw-r--r-- | libre/tp_smapi-parabola/PKGBUILD | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/libre/tp_smapi-parabola/PKGBUILD b/libre/tp_smapi-parabola/PKGBUILD index 6a395a0dd..0a789ecb9 100644 --- a/libre/tp_smapi-parabola/PKGBUILD +++ b/libre/tp_smapi-parabola/PKGBUILD @@ -10,13 +10,37 @@ # Contributor: Luke Shumaker <lukeshu@sbcglobal.net> # Contributor: Márcio Silva <coadde@parabola.nu> +_kernelname= _basekernel=3.16 -_kernelname= # libre/linux-libre{,-lts} +_pkgrel=1 + +if [[ ${_kernelname} == "" ]]; then + _basekernel=${_basekernel} + _pkgrel=52.2 +elif [[ ${_kernelname} == -lts ]]; then + _basekernel=3.14 + _pkgrel=29.1 +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=tp_smapi pkgname=${_pkgname}${_kernelname}-parabola pkgver=0.41 -pkgrel=52.2 # linux-libre=52.2 | linux-libre-lts=29.1 +pkgrel=${_pkgrel} _extramodules=extramodules-${_basekernel}${_kernelname} pkgdesc="Modules for ThinkPad's SMAPI functionality (built for the linux-libre${_kernelname} kernel package)" arch=('i686' 'x86_64' 'mips64el') |