Skip to content
Snippets Groups Projects
Unverified Commit 12e05e6a authored by Balló György's avatar Balló György :flag_hu:
Browse files

upgpkg: 3.38.2-2: Fix build, apply a patch to fix highscore off by one

parent 9e07c6aa
No related branches found
Tags 3.22.0-1
No related merge requests found
pkgbase = gnome-tetravex
pkgdesc = Complete the puzzle by matching numbered tiles
pkgver = 3.38.2
pkgrel = 1
pkgrel = 2
url = https://wiki.gnome.org/Apps/Tetravex
arch = x86_64
groups = gnome-extra
......@@ -13,7 +13,9 @@ pkgbase = gnome-tetravex
makedepends = appstream-glib
makedepends = git
depends = gtk3
source = git+https://gitlab.gnome.org/GNOME/gnome-tetravex.git#commit=76c564d4cd5aaaf3e2eea89d538358070b019753
sha256sums = SKIP
source = git+https://gitlab.gnome.org/GNOME/gnome-tetravex.git#tag=3.38.2
source = gnome-tetravex-highscore.patch
b2sums = 0860c8a161d4f948fe726b7ece46740571ceaa9f60dc069522853a6b5846d16ab6fc6c098131351eb7abf45ced868ae72319e8a042ea5e687c457c98963db378
b2sums = 4434e031aa2817579f9c6a1395fafc1446e2c9ea5f17a57a5886c8a47f1e67635f3ce7be1012920f8313ae5aed85f8b5c8cb3daee01d5fe2ece441de6a7a6dc2
pkgname = gnome-tetravex
......@@ -3,7 +3,7 @@
pkgname=gnome-tetravex
pkgver=3.38.2
pkgrel=1
pkgrel=2
pkgdesc="Complete the puzzle by matching numbered tiles"
url="https://wiki.gnome.org/Apps/Tetravex"
arch=(x86_64)
......@@ -11,17 +11,20 @@ license=(GPL)
depends=(gtk3)
makedepends=(meson gobject-introspection vala yelp-tools appstream-glib git)
groups=(gnome-extra)
_commit=76c564d4cd5aaaf3e2eea89d538358070b019753 # tags/3.38.2^0
source=("git+https://gitlab.gnome.org/GNOME/gnome-tetravex.git#commit=$_commit")
sha256sums=('SKIP')
pkgver() {
cd $pkgname
git describe --tags | sed 's/-/+/g'
}
source=("git+https://gitlab.gnome.org/GNOME/gnome-tetravex.git#tag=$pkgver"
gnome-tetravex-highscore.patch)
b2sums=('0860c8a161d4f948fe726b7ece46740571ceaa9f60dc069522853a6b5846d16ab6fc6c098131351eb7abf45ced868ae72319e8a042ea5e687c457c98963db378'
'4434e031aa2817579f9c6a1395fafc1446e2c9ea5f17a57a5886c8a47f1e67635f3ce7be1012920f8313ae5aed85f8b5c8cb3daee01d5fe2ece441de6a7a6dc2')
prepare() {
cd $pkgname
# Fix build with meson >= 0.60.1
git cherry-pick -n 2b4fc00c961c6e43049479e555e138f2c85560b3
# Fix off by one error in history object
# https://gitlab.gnome.org/GNOME/gnome-tetravex/-/merge_requests/26
git apply -3 ../gnome-tetravex-highscore.patch
}
build() {
......
From 4fad34211e572b065e4aabd877bd2ecd3ac7bc51 Mon Sep 17 00:00:00 2001
From: Maxwell Ruben <maxruben1@outlook.com>
Date: Sun, 11 Feb 2024 21:52:11 +0000
Subject: [PATCH] Fix off by one error
---
src/history.vala | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/history.vala b/src/history.vala
index 80a9de5..490d321 100644
--- a/src/history.vala
+++ b/src/history.vala
@@ -111,7 +111,6 @@ private class History : Object
best_time_item = entry_item;
do { best_time_item = best_time_item.prev; }
while (best_time_item != entries && best_time_item.data.size == puzzle_size);
- best_time_item = best_time_item.next;
return entries.position (best_time_item);
}
--
GitLab
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment