From 9618e5d982cd92ac8eec68cbd17d5e7cbf2f499d Mon Sep 17 00:00:00 2001 From: Hernan Martinez Date: Mon, 21 Apr 2025 00:02:15 -0600 Subject: [PATCH] ossia-score: Enable aarch64 builds --- mingw-w64-ossia-score/001-aarch64.patch | 11 +++++++++++ mingw-w64-ossia-score/PKGBUILD | 23 +++++++++++++++++++---- 2 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 mingw-w64-ossia-score/001-aarch64.patch diff --git a/mingw-w64-ossia-score/001-aarch64.patch b/mingw-w64-ossia-score/001-aarch64.patch new file mode 100644 index 0000000000..85c64c5ce6 --- /dev/null +++ b/mingw-w64-ossia-score/001-aarch64.patch @@ -0,0 +1,11 @@ +diff -bur ossia-score-3.5.3-orig/3rdparty/libossia/src/ossia/detail/audio_spin_mutex.hpp ossia-score-3.5.3/3rdparty/libossia/src/ossia/detail/audio_spin_mutex.hpp +--- ossia-score-3.5.3-orig/3rdparty/libossia/src/ossia/detail/audio_spin_mutex.hpp 2025-07-15 09:37:43.080018200 -0600 ++++ ossia-score-3.5.3/3rdparty/libossia/src/ossia/detail/audio_spin_mutex.hpp 2025-07-15 09:37:27.191279800 -0600 +@@ -16,6 +16,7 @@ + #include + #define ossia_rwlock_pause() _mm_pause() + #elif defined(_M_ARM64) + #include ++#include + #define ossia_rwlock_pause() YieldProcessor() + #elif defined(__i386__) diff --git a/mingw-w64-ossia-score/PKGBUILD b/mingw-w64-ossia-score/PKGBUILD index b53a9ae226..b8aa1306d5 100644 --- a/mingw-w64-ossia-score/PKGBUILD +++ b/mingw-w64-ossia-score/PKGBUILD @@ -4,10 +4,10 @@ _realname=ossia-score pkgbase=mingw-w64-${_realname} pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}") pkgver=3.5.3 -pkgrel=1 +pkgrel=2 pkgdesc="ossia score, an interactive sequencer for the intermedia arts" arch=('any') -mingw_arch=('mingw64' 'ucrt64' 'clang64') +mingw_arch=('mingw64' 'ucrt64' 'clang64' 'clangarm64') url="https://ossia.io" msys2_repository_url="https://github.com/ossia/score" license=('spdx:GPL-3.0-or-later') @@ -41,14 +41,29 @@ makedepends=( "${MINGW_PACKAGE_PREFIX}-boost" "git" ) -source=("https://github.com/ossia/score/releases/download/v${pkgver}/ossia.score-${pkgver}-src.tar.xz") -sha512sums=('ba20cda52f00782fb30b4319b2154eec0e3d692be865839f83095d28294894a289b383f1dbf6277345ec5c93284f96795e25bb62c5e3e2c3fe4290d607f0a702') +source=("https://github.com/ossia/score/releases/download/v${pkgver}/ossia.score-${pkgver}-src.tar.xz" + "001-aarch64.patch") +sha512sums=('ba20cda52f00782fb30b4319b2154eec0e3d692be865839f83095d28294894a289b383f1dbf6277345ec5c93284f96795e25bb62c5e3e2c3fe4290d607f0a702' + 'b3450fa7cac0c1de6ff88b69f30f61d47919927136f57ea23ff71862d7600c379d2f0f632f7e7dff0f597a82ea18ea5b07e8518a805a90f6659e5478e3d4fadb') noextract=(ossia.score-${pkgver}-src.tar.xz) +apply_patch_with_msg() { + for _patch in "$@" + do + msg2 "Applying ${_patch}" + patch -Nbp1 -i "${srcdir}/${_patch}" + done +} + prepare() { [[ -d "${srcdir}"/${_realname}-${pkgver} ]] && rm -rf "${srcdir}"/${_realname}-${pkgver} MSYS=winsymlinks:native \ tar -xJf "${srcdir}"/ossia.score-${pkgver}-src.tar.xz -C "${srcdir}" || true + + cd "${srcdir}/${_realname}-${pkgver}" + + apply_patch_with_msg \ + 001-aarch64.patch } build() {