# Maintainer: Philip Goto pkgname=gnome-text-editor pkgver=43.1 pkgrel=1 pkgdesc='Simple text editor that focuses on session management' arch=(x86_64 aarch64) url='https://gitlab.gnome.org/GNOME/gnome-text-editor' license=(GPL3) depends=( editorconfig-core-c enchant gtksourceview5 libadwaita ) makedepends=( itstool meson ) options=(debug) _commit=${pkgver} source=("${url}/-/archive/${_commit}/${pkgname}-${_commit}.tar.gz") b2sums=('a977dbeaf117754e884326aa68f1f30c7dfae5ff63b7585b393d4598b989cf663c797dc96002044ac8521554453ec76f4240424e4c05551c6d039af0997bd506') build() { arch-meson ${pkgname}-${_commit} build meson compile -C build } check() { meson test -C build --print-errorlogs || true } package() { DESTDIR="${pkgdir}" meson install -C build rm -rf "${pkgdir}/usr/share/gtksourceview-5" }