summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTilmann Meyer2020-03-18 15:35:25 +0100
committerTilmann Meyer2020-03-18 15:35:25 +0100
commitaf98bc0fa1c9e5aa302f22b57f2121dbc1d68d5d (patch)
tree29e48d745f2f23c01322b6784e8d7c19c26159e0
downloadaur-af98bc0fa1c9e5aa302f22b57f2121dbc1d68d5d.tar.gz
addpkg: aarch64-linux-gnu-meson
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD27
-rw-r--r--meson.sh15
-rw-r--r--toolchain.meson23
4 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bbc598907df
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = aarch64-linux-gnu-meson
+ pkgdesc = A meson wrapper for the ARM64 target
+ pkgver = 1.0.0
+ pkgrel = 1
+ url = http://fedoraproject.org/wiki/MinGW
+ arch = x86_64
+ license = GPL
+ depends = meson
+ depends = aarch64-linux-gnu-gcc
+ depends = aarch64-linux-gnu-pkg-config
+ depends = aarch64-linux-gnu-environment
+ source = meson.sh
+ source = toolchain.meson
+ sha256sums = 39847155adb2118daec62992a456d2a042dcc00d1a7c27402aff7eb1da97f500
+ sha256sums = e0aaa8a06d1e61a5578e8ff379ea5405f020697ac10c5999f9373c769a42de6d
+
+pkgname = aarch64-linux-gnu-meson
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f0bfd915e91
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Tilmann Meyer <tilmann.meyer@gmx.net>
+
+_target=aarch64-linux-gnu
+
+pkgname=$_target-meson
+pkgver=1.0.0
+pkgrel=1
+pkgdesc='A meson wrapper for the ARM64 target'
+arch=(x86_64)
+url='http://fedoraproject.org/wiki/MinGW'
+license=(GPL)
+depends=(meson $_target-gcc $_target-pkg-config $_target-environment)
+makedepends=()
+options=()
+source=(
+ 'meson.sh'
+ 'toolchain.meson'
+)
+sha256sums=(
+ '39847155adb2118daec62992a456d2a042dcc00d1a7c27402aff7eb1da97f500'
+ 'e0aaa8a06d1e61a5578e8ff379ea5405f020697ac10c5999f9373c769a42de6d'
+)
+
+package() {
+ install -m 755 -D meson.sh "$pkgdir"/usr/bin/aarch64-linux-gnu-meson
+ install -m 755 -D toolchain.meson "$pkgdir"/usr/share/aarch64/toolchain.meson
+}
diff --git a/meson.sh b/meson.sh
new file mode 100644
index 00000000000..92da828d1ad
--- /dev/null
+++ b/meson.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env sh
+
+TARGET=aarch64-linux-gnu
+
+CROSS_FILE=/usr/share/aarch64/toolchain.meson
+
+source $TARGET-environment
+
+exec meson setup \
+ --buildtype release \
+ --wrap-mode nofallback \
+ -D strip=true \
+ --cross-file $CROSS_FILE \
+ --default-library shared \
+ "$@"
diff --git a/toolchain.meson b/toolchain.meson
new file mode 100644
index 00000000000..321cd068b59
--- /dev/null
+++ b/toolchain.meson
@@ -0,0 +1,23 @@
+[binaries]
+c = 'aarch64-linux-gnu-gcc'
+cpp = 'aarch64-linux-gnu-g++'
+fortran = 'aarch64-linux-gnu-gfortran'
+ar = 'aarch64-linux-gnu-gcc-ar'
+pkgconfig = 'aarch64-linux-gnu-pkg-config'
+ranlib = 'aarch64-linux-gnu-gcc-ranlib'
+strip = 'aarch64-linux-gnu-strip'
+windres = 'aarch64-linux-gnu-windres'
+cmake = 'aarch64-linux-gnu-cmake'
+
+[properties]
+
+
+[host_machine]
+system = 'linux'
+cpu_family = 'aarch64'
+cpu = 'aarch64'
+endian = 'little'
+
+[paths]
+prefix = '/usr/aarch64-linux-gnu'
+libexecdir = 'lib'