blob: bc969e804ce6f2d14f5a88fc369433c5cd17ddf5 (
plain)
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
40
41
42
43
44
45
46
47
48
|
# Maintainer: Marcel Campello <marcel.campello@prafrentex.com.br>
pkgname=leiningen-with-completion
pkgver=2.10.0
pkgrel=1
pkgdesc='For automating Clojure projects without setting your hair on fire.'
arch=('any')
url='https://leiningen.org/'
license=('EPL')
depends=('java-environment')
optdepends=('rlwrap: for readline support')
provides=('leiningen')
conflicts=('leiningen')
source=("https://codeberg.org/leiningen/leiningen/archive/${pkgver}.tar.gz"
"https://codeberg.org/leiningen/leiningen/releases/download/${pkgver}/leiningen-${pkgver}-standalone.jar")
sha256sums=('6b04dbe0934ab4c34dc27b0055ad290d2ba9c0f454c1bda7defa58d62946b743'
'd27299bad34075ac2864d0bd0559f835c6e2c476c0b0a283bcbdb574fdadbb34')
noextract=("leiningen-${pkgver}-standalone.zip")
package() {
cd "${srcdir}/leiningen"
# command script and JAR file
install bin/lein -t "${pkgdir}/usr/bin" -Dm 0755
install "../leiningen-${pkgver}-standalone.jar" -t "${pkgdir}/usr/share/java" -Dm 0644
# man page, documentation and license
install doc/lein.1 -t "${pkgdir}/usr/share/man/man1" -Dm 0644
install doc/ja/lein_ja.1 -T "${pkgdir}/usr/share/man/ja/man1/lein.1" -Dm 0644
local docdir="${pkgdir}/usr/share/doc/leiningen"
install doc/*.md -t "${docdir}" -Dm 0644
install CONTRIBUTING.md -t "${docdir}" -Dm 0644
install NEWS.md -t "${docdir}" -Dm 0644
install README.md -t "${docdir}" -Dm 0644
install sample.project.clj -t "${docdir}" -Dm 0644
install COPYING -t "${pkgdir}/usr/share/licenses/leiningen" -Dm 0644
# shell completions
install bash_completion.bash -T "${pkgdir}/usr/share/bash-completion/completions/lein" -Dm 0644
install zsh_completion.zsh -T "${pkgdir}/usr/share/zsh/site-functions/_lein" -Dm 0644
install pcmpl-lein.el -t "${pkgdir}/usr/share/emacs/site-lisp" -Dm 0644
}
|