diff options
author | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-12-01 15:25:21 +0000 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-12-01 16:08:13 +0000 |
commit | 94083c46635745bd396beedfda232ff0cae20139 (patch) | |
tree | 4b7272ca9884681da2fa3be54a4cdc3f96d71fa0 | |
parent | 8d39cc929bcbb7ef314f4ff09b6ce2db9bfbcc8d (diff) | |
download | aports-94083c46635745bd396beedfda232ff0cae20139.tar.bz2 aports-94083c46635745bd396beedfda232ff0cae20139.tar.xz |
testing/chezmoi: new aport
-rw-r--r-- | testing/chezmoi/APKBUILD | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/testing/chezmoi/APKBUILD b/testing/chezmoi/APKBUILD new file mode 100644 index 0000000000..d7fc8f5478 --- /dev/null +++ b/testing/chezmoi/APKBUILD @@ -0,0 +1,65 @@ +# Contributor: Kevin Daudt <kdaudt@alpinelinux.org> +# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org> +pkgname="chezmoi" +pkgver="1.7.3" +pkgrel=0 +pkgdesc="Manage your dotfiles across multiple machines, securely." +url="https://www.chezmoi.io/" +arch="all" +license="MIT" +makedepends="go" +options="!check chmod-clean" # no test suite +subpackages=" + $pkgname-bash-completion:bashcomp:noarch + $pkgname-zsh-completion:zshcomp:noarch + $pkgname-fish-completion:fishcomp:noarch + " +source="$pkgname-$pkgver.tar.gz::https://github.com/twpayne/chezmoi/archive/v$pkgver.tar.gz" + +export GOPATH="$srcdir" + +build() { + go build + make completions +} + +package() { + install -Dm0755 chezmoi "$pkgdir"/usr/bin/chezmoi +} + +bashcomp() { + pkgdesc="additional scripts for bash like shell completion" + depends="" + install_if="$pkgname=$pkgver-r$pkgrel bash-completion" + + cd "$builddir" + install -Dm0644 completions/chezmoi-completion.bash \ + "$subpkgdir"/usr/share/bash-completion/completions/$pkgname +} + +zshcomp() { + pkgdesc="additional scripts for zsh like shell completion" + depends="" + install_if="$pkgname=$pkgver-r$pkgrel zsh" + + cd "$builddir" + install -Dm0644 completions/chezmoi.zsh \ + "$subpkgdir"/usr/share/zsh/site-functions/_$pkgname +} + +fishcomp() { + pkgdesc="additional scripts for fish like shell completion" + depends="" + install_if="$pkgname=$pkgver-r$pkgrel fish" + + cd "$builddir" + install -Dm0644 completions/chezmoi.fish \ + "$subpkgdir"/usr/share/fish/site-functions/_$pkgname +} + +cleanup_srcdir() { + go clean -modcache + default_cleanup_srcdir +} + +sha512sums="36d274680c53dc3bdf8a3277f69d209ce5bf12e0a80811c38a3e65d58653b321904ae7c1b70eaae7764bb0abdaa013885d326403e44e983f9a9144af1c639c72 chezmoi-1.7.3.tar.gz" |