void-packages/srcpkgs/leiningen/template

25 lines
1022 B
Bash

# Template file for 'leiningen'
pkgname=leiningen
version=2.8.2
revision=1
noarch=yes
depends="bash virtual?java-runtime"
short_desc="Automate Clojure projects without setting your hair on fire"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="EPL-2.0"
homepage="http://leiningen.org/"
distfiles="https://github.com/technomancy/${pkgname}/archive/${version}.tar.gz
https://github.com/technomancy/${pkgname}/releases/download/${version}/leiningen-${version}-standalone.zip"
checksum="9abfbb112edb9c2181e6f8477f7b79c8a0768243fd0971f6491ed36952fd625b
d7928dd1d336f1c04e095af068defee3c729011c8507686229755c91c230cb38"
skip_extraction="leiningen-${version}-standalone.zip"
do_install() {
vbin bin/lein-pkg lein
vman doc/lein.1
vinstall ${XBPS_SRCDISTDIR}/${pkgname}-${version}/leiningen-${version}-standalone.zip 644 usr/share/java leiningen-${version}-standalone.jar
vinstall zsh_completion.zsh 644 usr/share/zsh/site-functions _lein
vinstall bash_completion.bash 644 usr/share/bash-completion/completions lein
}