libart: Enable aarch64 builds

This commit is contained in:
Hernan Martinez 2025-04-16 23:35:36 -06:00 committed by Christoph Reiter
parent 53eaae386e
commit ca6fd602b3
2 changed files with 30 additions and 5 deletions

View File

@ -0,0 +1,12 @@
diff -bur libart_lgpl-2.3.21-o/config.sub libart_lgpl-2.3.21/config.sub
--- libart_lgpl-2.3.21-o/config.sub 2025-04-16 23:33:07.522954300 -0600
+++ libart_lgpl-2.3.21/config.sub 2025-04-16 23:33:38.240802400 -0600
@@ -322,7 +322,7 @@
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
- | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* | aarch64-* \
| avr-* | avr32-* \
| bfin-* | bs2000-* \
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \

View File

@ -4,12 +4,12 @@ _realname=libart_lgpl
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=2.3.21
pkgrel=3
pkgrel=4
pkgdesc="Library for high-performance 2D graphics (mingw-w64)"
depends=()
makedepends=("${MINGW_PACKAGE_PREFIX}-cc")
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')
msys2_references=(
'aur: libart-lgpl'
'cygwin: libart_lgpl_2'
@ -19,13 +19,26 @@ url='https://www.levien.com/libart'
license=('custom')
makedepends=("${MINGW_PACKAGE_PREFIX}-autotools" "${MINGW_PACKAGE_PREFIX}-cc")
source=("https://download.gnome.org/sources/${_realname}/${pkgver%.*}/${_realname}-${pkgver}.tar.bz2"
"0001-Fix-an-installation-path-bug.patch")
"0001-Fix-an-installation-path-bug.patch"
"0002-aarch64.patch")
sha256sums=('fdc11e74c10fc9ffe4188537e2b370c0abacca7d89021d4d303afdf7fd7476fa'
'730eca896d981b5c8e6d65e96ceededed6e08068c8b6f29a782d7b56ddae92d6')
'730eca896d981b5c8e6d65e96ceededed6e08068c8b6f29a782d7b56ddae92d6'
'9b36b95bcdf6c051f6f72c16cf9daf8b92bd376d8311e6bc6ec4f150449b4bcd')
apply_patch_with_msg() {
for _patch in "$@"
do
msg2 "Applying ${_patch}"
patch -Nbp1 -i "${srcdir}/${_patch}"
done
}
prepare() {
cd "${srcdir}"/${_realname}-${pkgver}
patch -p1 -i "${srcdir}"/0001-Fix-an-installation-path-bug.patch
apply_patch_with_msg \
0001-Fix-an-installation-path-bug.patch \
0002-aarch64.patch
}
build() {