shotcut: Update to 24.04.28

This commit is contained in:
Hernan Martinez
2024-06-09 03:49:51 -06:00
committed by GitHub
parent 88746ef386
commit bb385b84d1
2 changed files with 28 additions and 5 deletions

View File

@@ -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 <Windows.h>
#ifdef QT_DEBUG
# include <exchndl.h>
#endif

View File

@@ -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() {