diff options
| author | Ruben Beltran del Rio <jj@r.bdr.sh> | 2026-03-23 20:52:55 +0100 |
|---|---|---|
| committer | Rubén Beltrán del Río <jj@r.bdr.sh> | 2026-04-05 00:31:21 +0200 |
| commit | c7e9fb9dac3c0a2b4a0c6c2d5d34a12175aac096 (patch) | |
| tree | d9cafdea3432d7b5a13d3a47bfbe0808c554abb0 /build-aux/arch | |
| parent | 99fd689d01adeaa6847901c35172b533119fccda (diff) | |
Adapt arch build to use meson
Diffstat (limited to 'build-aux/arch')
| -rw-r--r-- | build-aux/arch/PKGBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
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 <wmap@r.bdr.sh> +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 +} |