void-packages/srcpkgs/clojure/template

23 lines
704 B
Bash

# Template file for 'clojure'
pkgname=clojure
version=1.9.0.358
revision=1
wrksrc="clojure-tools"
depends="virtual?java-environment rlwrap"
short_desc="The Clojure Programming Language"
maintainer="Dominic Monroe <monroef4@googlemail.com>"
license="EPL"
homepage="https://clojure.org/"
distfiles="https://download.clojure.org/install/clojure-tools-${version}.tar.gz"
checksum=574f8b2c5a5b3c9aa9f1f184c65bd6ebdd708febc4d1f9b0f112b76ca29d253a
do_install() {
vmkdir /usr/lib/clojure
vmkdir /usr/lib/clojure/libexec
vcopy "deps.edn example-deps.edn" /usr/lib/clojure
vcopy clojure-tools-${version}.jar /usr/lib/clojure/libexec/
sed -i -e 's@PREFIX@/usr/lib/clojure@g' clojure
vbin clojure
vbin clj
}