Here's a patch to make it work.
From 6a1b51972d66d954ab1066758b79306ad79d9da9 Mon Sep 17 00:00:00 2001
From: txtsd <code@ihavea.quest>
Date: Tue, 21 Mar 2023 04:49:34 +0530
Subject: [PATCH] Handle new openmw-48-rc* tag format
Signed-off-by: txtsd <code@ihavea.quest>
---
.SRCINFO | 2 +-
PKGBUILD | 12 +++++++++---
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/.SRCINFO b/.SRCINFO
index 3a33540..df1f366 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = openmw-git
pkgdesc = An open-source engine reimplementation for the role-playing game Morrowind.
- pkgver = 0.47.0.r4538.ga41cbfb349
+ pkgver = 0.48.0.rc8.r1554.gffe0e01dfc
pkgrel = 1
url = http://www.openmw.org
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index ee076d6..78c8961 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,9 @@
# Maintainer : bwrsandman
# Co-Maintainer: Lone_Wolf <lone_wolf@klaas-de-kat.nl>
+# Contributor: txtsd <aur.archlinux@ihavea.quest>
pkgname=openmw-git
-pkgver=0.47.0.r4538.ga41cbfb349
+pkgver=0.48.0.rc8.r1554.gffe0e01dfc
pkgrel=1
pkgdesc="An open-source engine reimplementation for the role-playing game Morrowind."
arch=('i686' 'x86_64')
@@ -18,8 +19,13 @@ sha1sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname%-git}"
- _tag="$(git describe --tags --match 'openmw-[01]*' --abbrev=0 $(git rev-list --tags) | uniq | sed 's/openmw-//' | sort | tail -n1)"
- _numcommits="$(git rev-list openmw-$_tag..HEAD --count)"
+ _pattern='^([0-9]{2})-rc([0-9]{1,2}$)'
+ _tag="$(git describe --tags $(git rev-list --tags --max-count=1) | sed 's/openmw-//')"
+ if [[ $_tag =~ $_pattern ]] ;
+ then
+ _tag=$(echo $_tag | sed -E 's/^([0-9]{2})-rc([0-9]{1,2}$)/0.\1.0.rc\2/')
+ fi
+ _numcommits="$(git rev-list $(git rev-list --tags --no-walk --max-count=1)..HEAD --count)"
_hash="$(git rev-parse --short HEAD)"
printf "%s.r%s.g%s" "$_tag" "$_numcommits" "$_hash"
}
--
2.40.0
Pinned Comments
Lone_Wolf commented on 2022-06-17 10:07 (UTC)
openmw-git has been found to require a sizable amount of temporary space during building.
The available amount depends on system specifics so is different for all systems. In case build fails with "no space left on device" you may be bitten by this.
See https://bbs.archlinux.org/viewtopic.php?id=277304 for details and possible solutions.
bwrsandman commented on 2016-09-24 14:59 (UTC) (edited on 2018-11-22 17:28 (UTC) by bwrsandman)
Please refrain from flagging the git version as out date when a new release comes out. The git aur packages update their version on install time based on the tags of the git repo.
Keep in mind that this is a VCS package and it is meant to be in line with the latest master which might not always work. It is not meant to follow the release pattern in any particularly smart way and assumes that upstream maintains their tags consistently.
For the newest release, the correct page is https://www.archlinux.org/packages/?q=openmw