aboutsummaryrefslogtreecommitdiffstats
path: root/testing/leiningen/APKBUILD
blob: 294d7ad9982fab70e51fbe77a5ecf7cd50d28db2 (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
39
# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=leiningen
pkgver=2.9.6
pkgrel=0
pkgdesc="Automate Clojure Projects"
options="!check" #No Checks
url="https://leiningen.org/"
arch="noarch !mips !mips64" # java
license="EPL-1.0"
depends="bash openjdk8"
subpackages="$pkgname-doc
	$pkgname-bash-completion
	$pkgname-zsh-completion
	"
source="leiningen-$pkgver.tar.gz::https://github.com/technomancy/leiningen/archive/$pkgver.tar.gz
	https://github.com/technomancy/leiningen/releases/download/$pkgver/leiningen-$pkgver-standalone.zip
	"

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.zip" \
		"$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="
d0b819646fd18d3c868d63ae853a5d7458f8fbe7daf455f6b60ba7c85260f1f5726d0baf50a5184dbabc1c2c3284cb34b44f14d855b6e7593954bf307db4df0a  leiningen-2.9.6.tar.gz
5d197720cb6caa881c0b32501b838f46214f4787039991a8593ca4675e1e5cdc356cbf8ce534978160f997f76eaae6e9137fa667f8790ef6d3a09f90dc4a428d  leiningen-2.9.6-standalone.zip
"