void-packages/srcpkgs/clojure/template

23 lines
704 B
Bash
Raw Normal View History

2017-12-13 13:42:51 +01:00
# Template file for 'clojure'
pkgname=clojure
version=1.9.0.315
2017-12-13 13:42:51 +01:00
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=c9eba2fe2d151f9eb0635c997232c9637c8af4799f8dd0e93634d594ede80949
2017-12-13 13:42:51 +01:00
do_install() {
2017-12-13 13:42:51 +01:00
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
}