# Maintainer: Sergii Fesenko # PKGBUILD based on the one from https://aur.archlinux.org/packages/lite-xl pkgname=lite-xl-git _pkgname=lite-xl pkgver=1.16.12.r113.gd10865b pkgrel=1 pkgdesc='A lightweight text editor written in Lua' arch=('x86_64') url="https://github.com/franko/$_pkgname" license=('MIT') depends=('lua52' 'sdl2' 'freetype2') makedepends=('meson>=0.58' 'gendesk') conflicts=("lite" "lite-xl") provides=("$_pkgname") source=("git+https://github.com/franko/lite-xl") sha256sums=('SKIP') pkgver() { cd "${srcdir}/${_pkgname}" git describe --tags --long | sed 's/^v//; s/\([^-]*-g\)/r\1/; s/-/./g' } build() { cd "$_pkgname" arch-meson build --wrap-mode default meson compile -C build } package() { cd "$_pkgname" DESTDIR="$pkgdir" meson install --skip-subprojects -C build install -Dm 644 "resources/icons/lite-xl.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/${_pkgname}.svg" install -Dm 644 "resources/linux/lite-xl.desktop" "$pkgdir/usr/share/applications/${_pkgname}.desktop" install -Dm 644 "LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname" }