From c7e9fb9dac3c0a2b4a0c6c2d5d34a12175aac096 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Mon, 23 Mar 2026 20:52:55 +0100 Subject: Adapt arch build to use meson --- build-aux/arch/PKGBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 build-aux/arch/PKGBUILD (limited to 'build-aux/arch') diff --git a/build-aux/arch/PKGBUILD b/build-aux/arch/PKGBUILD new file mode 100644 index 0000000..66ae6e0 --- /dev/null +++ b/build-aux/arch/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Ruben Beltran del Rio +pkgname=map +pkgver=1.0.4 +pkgrel=1 +pkgdesc="Wardley Map editor for Linux" +arch=('x86_64' 'aarch64') +url="https://map.tranquil.systems/map-for-linux" +license=('AGPL-3.0-or-later') +depends=('gtk4>=4.18.0' 'libadwaita>=1.7.0' 'gtksourceview5>=5.16.0' 'cairo>=1.18.0') +makedepends=(cargo 'meson>=1.0.0' gettext) +options=('!debug') +source=() +sha256sums=() + +prepare() { + cd "$startdir/src" + export RUSTUP_TOOLCHAIN=stable + cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" +} + +build() { + cd "$startdir/src" + meson setup --prefix /usr _build . + meson compile -C _build +} + +package() { + meson install -C _build --destdir $pkgdir +} -- cgit