void-packages/srcpkgs/clojure/template

26 lines
808 B
Bash

# Template file for 'clojure'
pkgname=clojure
version=1.12.0.1479
revision=1
depends="virtual?java-environment rlwrap"
short_desc="Clojure programming language command line tools"
maintainer="icp <pangolin@vivaldi.net>"
license="EPL-1.0"
homepage="https://clojure.org/"
distfiles="https://github.com/clojure/brew-install/releases/download/${version}/clojure-tools-${version}.tar.gz"
checksum=2a515c45755df1edf378fdfafb380251c7736de2db15f7dbe55ed7295f0d296c
do_install() {
vmkdir /usr/lib/clojure
vmkdir /usr/lib/clojure/libexec
vcopy "*.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
}