diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2019-05-05 23:52:57 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2019-05-05 23:52:57 -0700 |
commit | b85c938dfee195878c5bf77a35abc84bc9b4036a (patch) | |
tree | c2f58f2e8eb8a27bb60210d8b6ec2ea06dcf0d7f /PKGBUILD | |
parent | Updated to 5.0.13 (diff) | |
download | linux-ck-b85c938dfee195878c5bf77a35abc84bc9b4036a.tar.xz |
Improve workaround for when minver=0
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -18,7 +18,11 @@ pkgbase=linux-ck _majver=5.0 _minver=13 -pkgver=${_majver}.${_minver} + if [ "$_minver" == "0" ]; then + pkgver=${_majver} + else + pkgver=${_majver}.${_minver} + fi _ckpatchversion=1 _ckpatch="patch-5.0-ck${_ckpatchversion}" _gcc_more_v='20180509' @@ -124,7 +128,9 @@ prepare() { make menuconfig # Remove sublevel when no sublevel exists - # sed -i '/SUBLEVEL = 0/d' Makefile + if [ "$_minver" == "0" ]; then + sed -i '/SUBLEVEL = 0/d' Makefile + fi make -s kernelrelease > ../version |