void-packages/srcpkgs/clojure/template

26 lines
819 B
Bash

# Template file for 'clojure'
pkgname=clojure
version=1.11.1.1200
revision=1
depends="virtual?java-environment rlwrap"
short_desc="Clojure programming language command line tools"
maintainer="Dominic Monroe <monroef4@googlemail.com>"
license="EPL-1.0"
homepage="https://clojure.org/"
distfiles="https://download.clojure.org/install/clojure-tools-${version}.tar.gz"
checksum=dbde9c4bdd42b7da5a67d879548b4528e4903ce73ee26c329626b6165d57b61c
do_install() {
vmkdir /usr/lib/clojure
vmkdir /usr/lib/clojure/libexec
vcopy "deps.edn example-deps.edn tools.edn" /usr/lib/clojure
vcopy exec.jar /usr/lib/clojure/libexec/
vcopy clojure-tools-${version}.jar /usr/lib/clojure/libexec/
sed -i -e 's@BINDIR@/usr/bin@g' clj
sed -i -e 's@PREFIX@/usr/lib/clojure@g' clojure
vbin clojure
vbin clj
vman clj.1
vman clojure.1
}