-
-
Save redtide/2dbed04460c7a466426edf8f1841edad to your computer and use it in GitHub Desktop.
AUR lite-xl-git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Sergii Fesenko <sergii underscore f dot at outlook dot com> | |
# PKGBUILD based on the one from https://aur.archlinux.org/packages/lite-xl | |
_pkgname=lite-xl | |
pkgname=${_pkgname}-git | |
pkgver=2.0.beta1.r27.gf3a8e26 | |
pkgrel=1 | |
pkgdesc="A lightweight text editor written in Lua" | |
arch=("x86_64") | |
url="https://${_pkgname}.github.io/" | |
license=("MIT") | |
depends=("lua52" "sdl2" "freetype2") | |
makedepends=("meson>=0.58") | |
conflicts=("lite" "lite-xl") | |
provides=("$_pkgname") | |
source=("git+https://github.com/${_pkgname}/${_pkgname}") | |
sha256sums=("SKIP") | |
pkgver() { | |
cd "${srcdir}/${_pkgname}" | |
git describe --tags --long | sed "s/^v//; s/\([^-]*-g\)/r\1/; s/-/./g" | |
} | |
build() { | |
cd "${srcdir}/${_pkgname}" | |
arch-meson build --wrap-mode default | |
meson compile -C build | |
} | |
package() { | |
cd "${srcdir}/${_pkgname}" | |
DESTDIR="${pkgdir}" meson install --skip-subprojects -C build | |
install -vDm 644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${_pkgname}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment