summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorYurii Kolesnykov2019-05-29 16:15:05 +0300
committerYurii Kolesnykov2019-05-29 16:15:05 +0300
commitd2734672be5d92a1f8ee6c7ccd0fed948a6bab09 (patch)
treeafe90dafa9d9dafd07bc6374b89a73994e84d196 /PKGBUILD
parent6df3c641c42247e98179ffaea7eb23a9d9b20cc9 (diff)
downloadaur-linux-drm-intel-next-git.tar.gz
5.2.827763.c0a74c732568
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD8
1 files changed, 5 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 1fe2a362728..18cb7e7e00a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,10 +9,9 @@
pkgbase=linux-drm-intel-next-git
pkgdesc='Linux with patches for Intel graphics'
_srcname="${pkgbase}"
-_kernel_rel=5.1
_branch=drm-intel-next
_kernelname=${pkgbase#linux}
-pkgver=5.1.827748.cfc0e7bbf41b
+pkgver=5.2.827763.c0a74c732568
pkgrel=1
arch=(x86_64)
url='https://drm.pages.freedesktop.org/maintainer-tools/drm-intel.html'
@@ -32,8 +31,11 @@ sha256sums=('SKIP'
'ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65')
pkgver() {
cd "${_srcname}"
+ local version="$(grep \^VERSION Makefile|cut -d"=" -f2|cut -d" " -f2)"
+ local patch="$(grep \^PATCHLEVEL Makefile|cut -d"=" -f2|cut -d" " -f2)"
+ patch=$(( $patch + 1 ))
- echo ${_kernel_rel}.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+ echo $version.$patch.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
_kernelname=${pkgbase#linux}