summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2019-05-05 23:54:56 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2019-05-05 23:54:56 -0700
commit4e2d0dfe8bf9cad7b764a31c6672725f8d6e1f17 (patch)
tree781fb8764ec6e7179d8e5cfd7a3d47a72dd566b8 /PKGBUILD
parentUpdated to 5.0.12.a (diff)
downloadlinux-libre-hardened-ck-4e2d0dfe8bf9cad7b764a31c6672725f8d6e1f17.tar.xz
Improve workaround for when minver=0
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD10
1 files changed, 8 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 11d7624..6fa0a90 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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