void-packages/srcpkgs/leiningen/template

25 lines
1.0 KiB
Bash

# Template file for 'leiningen'
pkgname=leiningen
version=2.9.3
revision=1
archs=noarch
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="98cc1e58ebe0d71fede73ae6c7699f1b9b944650d57a220e576bc95a3185b846
23e1df18bc97226d570f47335a8d543e1b759ea303544ea57d5309be3dedcbbb"
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
}