void-packages/srcpkgs/leiningen/template

28 lines
1018 B
Bash

# Template file for 'leiningen'
pkgname=leiningen
version=2.11.2
revision=1
depends="bash virtual?java-runtime"
short_desc="Automate Clojure projects without setting your hair on fire"
maintainer="Adam Frey <adam@adamfrey.me>"
license="EPL-1.0"
homepage="https://leiningen.org/"
changelog="https://codeberg.org/leiningen/leiningen/raw/branch/main/NEWS.md"
distfiles="https://codeberg.org/leiningen/leiningen/archive/${version}.tar.gz
https://codeberg.org/leiningen/leiningen/releases/download/${version}/leiningen-${version}-standalone.jar"
checksum="b8dd330040ed473183fbc4a8bc404ec54f92f818172e0c3996d7c65ab7940a1e
7d31ae23ae769e927438b0cd55d15a93e7dabab09fd4fc15877979161e108774"
skip_extraction="leiningen-${version}-standalone.jar"
do_install() {
vbin bin/lein-pkg lein
vman doc/lein.1
vmkdir usr/share/java
vinstall "${XBPS_SRCDISTDIR}/leiningen-${version}/leiningen-${version}-standalone.jar" \
644 usr/share/java
vcompletion zsh_completion.zsh zsh lein
vcompletion bash_completion.bash bash lein
}