Skip to content

Instantly share code, notes, and snippets.

@redtide

redtide/PKGBUILD Secret

Created August 11, 2021 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save redtide/2dbed04460c7a466426edf8f1841edad to your computer and use it in GitHub Desktop.
Save redtide/2dbed04460c7a466426edf8f1841edad to your computer and use it in GitHub Desktop.
AUR lite-xl-git
# 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