aboutsummaryrefslogtreecommitdiffstats
path: root/community/leiningen/APKBUILD
blob: e8bcdee8b4664aac931f5e8af4a4d85f981f19b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=leiningen
pkgver=2.9.7
pkgrel=0
pkgdesc="Automate Clojure Projects"
options="!check" #No Checks
url="https://leiningen.org/"
arch="noarch !mips !mips64 !riscv64" # blocked by java-jdk
license="EPL-1.0"
depends="bash java-jdk"
subpackages="$pkgname-doc
	$pkgname-bash-completion
	$pkgname-zsh-completion
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/technomancy/leiningen/archive/refs/tags/$pkgver.tar.gz
	https://github.com/technomancy/leiningen/releases/download/$pkgver/leiningen-$pkgver-standalone.jar"

package() {
	install -Dm755 "$builddir/bin/lein-pkg" \
		"$pkgdir/usr/bin/lein"

	install -Dm644 "$builddir/doc/lein.1" \
		"$pkgdir/usr/share/man/man1/lein.1"

	install -Dm 644 "$srcdir/leiningen-$pkgver-standalone.jar" \
		"$pkgdir/usr/share/java/leiningen-$pkgver-standalone.jar"

	install -Dm644 bash_completion.bash \
		"$pkgdir"/usr/share/bash-completion/completions/lein
	install -Dm644 zsh_completion.zsh \
		"$pkgdir"/usr/share/zsh/site-functions/_lein
}

sha512sums="
a8ed011387e5d2cd5b2d4e426b934cbb61a4d3e728d0d4af5e71141915f8a452c59dd72d35a30036e9a5f223e8bc40a6e43ae3b9cceb14f5e1030fd0f48fcd40  leiningen-2.9.7.tar.gz
35924ab5a93b3408c02f13b8904275aad81382656c1be0bf3f0b4f47e0b805bcb1f778fbf2e0a894319675e57fdb54f0e5500bec03d18f959450ddfca5267515  leiningen-2.9.7-standalone.jar
"