Date: Tuesday, October 19, 2021 @ 13:44:26 Author: alucryd Revision: 1030976
add jenv Added: jenv/ jenv/trunk/ jenv/trunk/PKGBUILD ----------+ PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) Added: jenv/trunk/PKGBUILD =================================================================== --- jenv/trunk/PKGBUILD (rev 0) +++ jenv/trunk/PKGBUILD 2021-10-19 13:44:26 UTC (rev 1030976) @@ -0,0 +1,44 @@ +# Maintainer: Maxime Gauduin <[email protected]> +# Contributor: Gerard Ribugent <[email protected]> + +pkgname=jenv +pkgver=0.5.4.r12.7053916 +pkgrel=1 +pkgdesc='Manage your Java environment' +arch=(any) +url=https://github.com/jenv/jenv +license=(MIT) +depends=(bash) +makedepends=(git) +optdepends=( + 'bash-completion: Bash completion support' + 'fish: Fish support' + 'zsh: Zsh support' +) +_commit=7053916598c75e50d48e327e8b8ba66325606a8f +source=(git+https://github.com/jenv/jenv.git#commit=${_commit}) +b2sums=(SKIP) + +prepare() { + cd jenv + # fish has no hash command + git cherry-pick -n 4af54a52c6d2758a493315e99c7bcaad5bda3a2c +} + +pkgver() { + cd jenv + git describe --tags | sed 's/-/.r/; s/-g/./' +} + +package() { + install -dm 755 "${pkgdir}"/usr/{bin,share/{fish,jenv}} + cp -dr --no-preserve=ownership jenv/{available-plugins,libexec} "$pkgdir"/usr/share/jenv/ + cp -dr --no-preserve=ownership jenv/fish "${pkgdir}"/usr/share/fish/vendor_functions.d + ln -s /usr/share/jenv/libexec/jenv "${pkgdir}"/usr/bin/ + install -Dm 644 jenv/completions/jenv.bash "${pkgdir}"/usr/share/bash-completion/completions/jenv + install -Dm 644 jenv/completions/jenv.fish -t "${pkgdir}"/usr/share/fish/vendor_completions.d/ + install -Dm 644 jenv/completions/jenv.zsh "${pkgdir}"/usr/share/zsh/site-functions/_jenv + install -Dm 644 jenv/LICENSE -t "${pkgdir}"/usr/share/licenses/jenv/ +} + +# vim: ts=2 sw=2 et:
