# Contributor: Jakub Panek <me@panekj.dev>
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Sodface <sod@sodface.com>
pkgname=lite-xl
pkgver=2.1.6
pkgrel=0
pkgdesc="Lightweight text editor written in Lua"
url="https://lite-xl.github.io"
arch="all"
license="MIT"
makedepends="
	cmake
	freetype-dev
	lua5.4-dev
	meson
	pcre2-dev
	reproc-dev
	sdl2-dev
	"
subpackages="$pkgname-doc"
source="https://github.com/lite-xl/lite-xl/archive/v$pkgver/lite-xl-$pkgver.tar.gz"
options="!check" # no tests available

build() {
	abuild-meson \
		-Darch_tuple="$CARCH-linux" \
		-Duse_system_lua=true \
		. output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
4687ab073b37ebdc5c4215c4df42871b14c4a0cfc1f89ca43eec6cacf55e1b19f49e3053161edc244f51186288d0094a4c324171d3676ccaa40f2e2edccca4dc  lite-xl-2.1.6.tar.gz
"
