void-packages/srcpkgs/leiningen/template

24 lines
1012 B
Bash

# Template file for 'leiningen'
pkgname=leiningen
version=2.9.4
revision=2
depends="bash virtual?java-runtime"
short_desc="Automate Clojure projects without setting your hair on fire"
maintainer="Orphaned <orphan@voidlinux.org>"
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="be1b1e43c5376f2fdc8666aeb671df16c19776d5cfe64339292a3d35ce3a7faa
0e3c339480347df0445317d329accbd4a578ebbd8d91e568e661feb1b388706c"
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
}