diff --git a/core/binutils/.SRCINFO b/core/binutils/.SRCINFO index 9a93439be..b41659b2f 100644 --- a/core/binutils/.SRCINFO +++ b/core/binutils/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = binutils pkgdesc = A set of programs to assemble and manipulate binary and object files - pkgver = 2.42 - pkgrel = 3 + pkgver = 2.42+r91+g6224493e457 + pkgrel = 1 url = https://www.gnu.org/software/binutils/ arch = x86_64 license = GPL-2.0-or-later diff --git a/core/binutils/PKGBUILD b/core/binutils/PKGBUILD index 913a744ea..4a1015494 100644 --- a/core/binutils/PKGBUILD +++ b/core/binutils/PKGBUILD @@ -11,9 +11,9 @@ noautobuild=1 pkgname=binutils -pkgver=2.42 +pkgver=2.42+r91+g6224493e457 _commit=6224493e457e72b11818c87cdc112bdb0fee5f81 -pkgrel=3 +pkgrel=1 pkgdesc='A set of programs to assemble and manipulate binary and object files' arch=(x86_64) url='https://www.gnu.org/software/binutils/' @@ -35,6 +35,11 @@ sha256sums=('a36780f5918bf383520f44374b2daa2bc737f55aa2601458b9b35d576b4aa7df' '2d430b66f84a19c154725ec535280c493be1d34f1a90f95208dce02fecd0e4e4') validpgpkeys=(3A24BC1E8FB409FA9F14371813FCEF89DD9E3C4F) +pkgver() { + cd binutils-gdb + git describe --tags | sed 's/[^-]*-//;s/[^-]*-/&r/;s/-/+/g;s/_/./' +} + prepare() { [[ ! -d binutils-gdb ]] && ln -s binutils-${pkgver} binutils-gdb mkdir -p binutils-build