summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2019-05-05 23:52:57 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2019-05-05 23:52:57 -0700
commitb85c938dfee195878c5bf77a35abc84bc9b4036a (patch)
treec2f58f2e8eb8a27bb60210d8b6ec2ea06dcf0d7f /PKGBUILD
parentUpdated to 5.0.13 (diff)
downloadlinux-ck-b85c938dfee195878c5bf77a35abc84bc9b4036a.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 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