Shortened patchver

This commit is contained in:
Reza Jahanbakhshi 2023-07-13 07:19:14 +02:00
parent 66d7e397d2
commit 48328e67c1
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
pkgbase = mesa-git pkgbase = mesa-git
pkgdesc = an open-source implementation of the OpenGL specification, git version pkgdesc = an open-source implementation of the OpenGL specification, git version
pkgver = 23.2.0_devel.172019.732db2b60cd.d41d8cd98f00b204e9800998ecf8427e pkgver = 23.3.0_devel.174140.0dc961645c4.d41d8cd
pkgrel = 1 pkgrel = 1
url = https://www.mesa3d.org url = https://www.mesa3d.org
arch = x86_64 arch = x86_64

View File

@ -12,7 +12,7 @@
pkgname=mesa-git pkgname=mesa-git
pkgdesc="an open-source implementation of the OpenGL specification, git version" pkgdesc="an open-source implementation of the OpenGL specification, git version"
pkgver=23.2.0_devel.172019.732db2b60cd.d41d8cd98f00b204e9800998ecf8427e pkgver=23.3.0_devel.174140.0dc961645c4.d41d8cd
pkgrel=1 pkgrel=1
arch=('x86_64') arch=('x86_64')
makedepends=('git' 'python-mako' 'xorgproto' makedepends=('git' 'python-mako' 'xorgproto'
@ -92,7 +92,7 @@ pkgver() {
[[ $_patchfile = *.patch ]] || continue [[ $_patchfile = *.patch ]] || continue
_patchver="${_patchver}$(md5sum ${srcdir}/${_patchfile} | cut -c1-32)" _patchver="${_patchver}$(md5sum ${srcdir}/${_patchfile} | cut -c1-32)"
done done
_patchver="$(echo -n $_patchver | md5sum | cut -c1-32)" _patchver="$(echo -n $_patchver | md5sum | cut -c1-7)"
echo ${_ver/-/_}.$(git rev-list --count HEAD).$(git rev-parse --short HEAD).${_patchver} echo ${_ver/-/_}.$(git rev-list --count HEAD).$(git rev-parse --short HEAD).${_patchver}
} }