blob: 26282b6f0234efbd2c0d5e07199d904134cfee8d (
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
|
# Maintainer: Tom Lauerman <tom at lauerman dot dev>
pkgname=jenv-git
_pkgname=jenv
pkgver=0.5.4.r2.9bbc5eb
pkgrel=1
pkgdesc="A command line tool to manage your Java environment"
arch=('any')
url="https://www.jenv.be"
license=('MIT')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
install=jenv-git.install
source=("$pkgname::git+https://github.com/jenv/jenv.git" 'init-jenv.sh')
md5sums=('SKIP' 'ef913922693b155cb4e0230022c5d03b')
pkgver() {
cd "$srcdir/$pkgname"
printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
package() {
cd "$srcdir"
# install one-off files
install -Dm644 "$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 init-jenv.sh "$pkgdir/usr/share/$pkgname/init-jenv.sh"
# install jenv application data
mkdir -p "$pkgdir/usr/share/$pkgname/"
cp -r "$pkgname/"* "$pkgdir/usr/share/$pkgname"
}
|