diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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} |