summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD10
1 files changed, 8 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 1469bd3..3fe0ee7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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