diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2019-05-05 23:54:56 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2019-05-05 23:54:56 -0700 |
commit | 4e2d0dfe8bf9cad7b764a31c6672725f8d6e1f17 (patch) | |
tree | 781fb8764ec6e7179d8e5cfd7a3d47a72dd566b8 /PKGBUILD | |
parent | Updated to 5.0.12.a (diff) | |
download | linux-libre-hardened-ck-4e2d0dfe8bf9cad7b764a31c6672725f8d6e1f17.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-libre-hardened-ck _majver=5.0 _minver=12 -_pkgver=${_majver}.${_minver} + if [ "$_minver" == "0" ]; then + pkgver=${_majver} + else + pkgver=${_majver}.${_minver} + fi _gnumajver=${_majver}-gnu _gnupkgver=${_pkgver}-gnu _hardenedver=a @@ -137,7 +141,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 |