From bb385b84d16a3958e79c81255da754bd6965e8bc Mon Sep 17 00:00:00 2001 From: Hernan Martinez Date: Sun, 9 Jun 2024 03:49:51 -0600 Subject: [PATCH] shotcut: Update to 24.04.28 --- .../0002-missing-windows.h.patch | 11 ++++++++++ mingw-w64-shotcut/PKGBUILD | 22 ++++++++++++++----- 2 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 mingw-w64-shotcut/0002-missing-windows.h.patch diff --git a/mingw-w64-shotcut/0002-missing-windows.h.patch b/mingw-w64-shotcut/0002-missing-windows.h.patch new file mode 100644 index 0000000000..a61cd4b5e1 --- /dev/null +++ b/mingw-w64-shotcut/0002-missing-windows.h.patch @@ -0,0 +1,11 @@ +diff -bur shotcut-24.04.28-orig/src/main.cpp shotcut-24.04.28/src/main.cpp +--- shotcut-24.04.28-orig/src/main.cpp 2024-06-09 03:24:55.534724100 -0600 ++++ shotcut-24.04.28/src/main.cpp 2024-06-09 03:25:19.809592300 -0600 +@@ -35,6 +35,7 @@ + #endif + + #ifdef Q_OS_WIN ++#include + #ifdef QT_DEBUG + # include + #endif diff --git a/mingw-w64-shotcut/PKGBUILD b/mingw-w64-shotcut/PKGBUILD index cb953b5d1c..ab09bb32f8 100644 --- a/mingw-w64-shotcut/PKGBUILD +++ b/mingw-w64-shotcut/PKGBUILD @@ -3,7 +3,7 @@ _realname=shotcut pkgbase=mingw-w64-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}") -pkgver=24.02.29 +pkgver=24.04.28 pkgrel=1 pkgdesc='Cross-platform Qt based Video Editor (mingw-w64)' arch=('any') @@ -24,14 +24,26 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cc" "${MINGW_PACKAGE_PREFIX}-ninja" "${MINGW_PACKAGE_PREFIX}-qt6-tools") source=("${_realname}-${pkgver}.tar.gz::https://github.com/mltframework/shotcut/archive/v${pkgver}.tar.gz" - 0001-fix-translation-on-msys2.patch) -sha256sums=('681cc030c8b576136829e7461a1736f5146a966dbe604cf6ff6f13eb66d04d62' - '28becf4b8a4e0fac1221b3b372881a76a95f27af0a28e3d7599efefd0158aae3') + 0001-fix-translation-on-msys2.patch + 0002-missing-windows.h.patch) +sha256sums=('cc40aeb8b7f50fb8e102f45e1accbc4b4153f14b565154a4f4a6ec446f5591e4' + '28becf4b8a4e0fac1221b3b372881a76a95f27af0a28e3d7599efefd0158aae3' + 'd931438289d5af3d877257eb0c52d3f31ae76201ea20da92a39b0263f1f32745') + +apply_patch_with_msg() { + for _patch in "$@" + do + msg2 "Applying ${_patch}" + patch -Nbp1 -i "${srcdir}/${_patch}" + done +} prepare() { cd "${srcdir}/${_realname}-${pkgver}" - patch -Np1 -i "${srcdir}/0001-fix-translation-on-msys2.patch" + apply_patch_with_msg \ + 0001-fix-translation-on-msys2.patch \ + 0002-missing-windows.h.patch } build() {