void-packages/srcpkgs/clojure/template
2019-03-20 06:16:20 -03:00

24 lines
748 B
Bash

# Template file for 'clojure'
pkgname=clojure
version=1.10.0.442
revision=1
wrksrc="clojure-tools"
depends="virtual?java-environment rlwrap"
short_desc="Clojure programming language command line tools"
maintainer="Dominic Monroe <monroef4@googlemail.com>"
license="EPL"
homepage="https://clojure.org/"
distfiles="https://download.clojure.org/install/clojure-tools-${version}.tar.gz"
checksum=9c3298d9c25de1d21c1f8aae866ff28e73d3478bdaaa8df00386ef3b5a9cf790
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
vman clj.1
vman clojure.1
}