void-packages/srcpkgs/clojure-lsp/template

34 lines
951 B
Bash

# Template file for 'clojure-lsp'
pkgname=clojure-lsp
version=2024.08.05
revision=1
_ver_hms="18.16.00"
hostmakedepends="mandrel leiningen babashka clojure"
makedepends="zlib-devel"
short_desc="Clojure & ClojureScript language server implementation"
maintainer="icp <pangolin@vivaldi.net>"
license="MIT"
homepage="https://clojure-lsp.io"
changelog="https://raw.githubusercontent.com/clojure-lsp/clojure-lsp/master/CHANGELOG.md"
distfiles="https://github.com/clojure-lsp/clojure-lsp/archive/refs/tags/${version}-${_ver_hms}.tar.gz"
checksum=bc2a70af9df657f4dca2d7820a368c241d2de871caee89cd74c10574482f8d1a
nocross="mandrel"
do_build() {
export JAVA_HOME=/usr/lib/jvm/mandrel21
export GRAALVM_HOME=/usr/lib/jvm/mandrel21
export PATH="/usr/libexec/chroot-git:${PATH}"
if [ "$XBPS_TARGET_LIBC" = musl ]; then
export CLOJURE_LSP_STATIC=true
export CLOJURE_LSP_MUSL=true
fi
bb native-cli
}
do_install() {
vbin clojure-lsp
vlicense LICENSE
}