From db2a87c9ab4ef0b6a8bcae5a6aad2e5a69a11262 Mon Sep 17 00:00:00 2001
From: fossdd <fossdd@pwned.life>
Date: Mon, 10 Feb 2025 12:49:48 +0100
Subject: [PATCH] community/phoc: upgrade to 0.45.0

https://gitlab.gnome.org/World/Phosh/phoc/-/blob/v0.45.0/NEWS
---
 community/phoc/APKBUILD | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/community/phoc/APKBUILD b/community/phoc/APKBUILD
index 3c156768f750..bf8fa3873553 100644
--- a/community/phoc/APKBUILD
+++ b/community/phoc/APKBUILD
@@ -4,8 +4,8 @@
 # Contributor: Rasmus Thomsen <oss@cogitri.dev>
 # Maintainer: team/phosh <newbie13xd@gmail.com>
 pkgname=phoc
-pkgver=0.43.0
-pkgrel=1
+pkgver=0.45.0
+pkgrel=0
 pkgdesc="wlroots based Phone compositor for the Phosh shell"
 arch="all !s390x" # blocked by gnome-desktop
 url="https://gitlab.gnome.org/World/Phosh/phoc"
@@ -46,9 +46,7 @@ makedepends="
 checkdepends="xvfb-run"
 subpackages="$pkgname-dbg"
 options="!check" # Needs fullblown EGL
-# expired certificate :/
-#source="https://sources.phosh.mobi/releases/phoc/phoc-${pkgver/_/.}.tar.xz"
-source="https://dev.alpinelinux.org/archive/phoc/phoc-${pkgver/_/.}.tar.xz"
+source="https://sources.phosh.mobi/releases/phoc/phoc-${pkgver/_/.}.tar.xz"
 replaces="wlroots-phosh"
 builddir="$srcdir/$pkgname-${pkgver/_/.}"
 
@@ -56,6 +54,7 @@ prepare() {
 	default_prepare
 
 	patch -Np1 < subprojects/packagefiles/wlroots/0001-Revert-layer-shell-error-on-0-dimension-without-anch.patch -d subprojects/wlroots
+	patch -Np1 < subprojects/packagefiles/wlroots/0001-seat-Don-t-forget-to-destroy-touch-points-on-touch-u.patch -d subprojects/wlroots
 }
 
 build() {
@@ -79,10 +78,10 @@ package() {
 
 	# remove unneeded wlroots dev. files
 	rm -r "$pkgdir"/usr/include
-	rm -r "$pkgdir"/usr/lib/libwlroots.a
+	rm -r "$pkgdir"/usr/lib/libwlroots-*.a
 	rm -r "$pkgdir"/usr/lib/pkgconfig
 }
 
 sha512sums="
-934f3c56ff010a99efe9cc9ef44ec68d7f1f1e91dc26e16e436a4a88b6711f560be0eab506e0c2b710635ad1149967d38a4144e28dc60763252e1a3f891a1625  phoc-0.43.0.tar.xz
+3b647c41577ba792f490b97b9f1c00634e581b47bf2534e54b56ce0ab3e248afdc1f366d726bea64ed1b79cdc0779f1d22576983fafc348a51be1314fa77f607  phoc-0.45.0.tar.xz
 "
-- 
GitLab