mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-06 19:14:48 +02:00
60 lines
1.8 KiB
Text
60 lines
1.8 KiB
Text
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
|
|
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
|
|
pkgname=chezmoi
|
|
pkgver=2.62.5
|
|
pkgrel=0
|
|
pkgdesc="Manage your dotfiles across multiple machines, securely."
|
|
url="https://www.chezmoi.io/"
|
|
arch="all"
|
|
license="MIT"
|
|
makedepends="go"
|
|
checkdepends="unzip"
|
|
options="net"
|
|
subpackages="
|
|
$pkgname-bash-completion
|
|
$pkgname-zsh-completion
|
|
$pkgname-fish-completion
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/twpayne/chezmoi/archive/v$pkgver.tar.gz
|
|
makefile-quote-built-by.patch
|
|
test-increase-timeout.patch
|
|
"
|
|
|
|
build() {
|
|
make \
|
|
VERSION="$pkgver" \
|
|
DATE="$(date --utc +%Y-%m-%dT%H:%M:%SZ)" \
|
|
BUILT_BY="Alpine Linux"
|
|
}
|
|
|
|
check() {
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
make install \
|
|
VERSION="$pkgver" \
|
|
DATE="$(date --utc +%Y-%m-%dT%H:%M:%SZ)" \
|
|
BUILT_BY="Alpine Linux" \
|
|
DESTDIR="$pkgdir" \
|
|
PREFIX="/usr"
|
|
|
|
install -Dm0644 completions/chezmoi-completion.bash \
|
|
"$pkgdir"/usr/share/bash-completion/completions/$pkgname
|
|
install -Dm0644 completions/chezmoi.zsh \
|
|
"$pkgdir"/usr/share/zsh/site-functions/_$pkgname
|
|
install -Dm0644 completions/chezmoi.fish \
|
|
"$pkgdir"/usr/share/fish/vendor_completions.d/$pkgname.fish
|
|
}
|
|
|
|
doc() {
|
|
default_doc
|
|
mkdir -p "$subpkgdir/usr/share/doc/chezmoi"
|
|
cp "$builddir/docs/"* "$subpkgdir/usr/share/doc/chezmoi"
|
|
}
|
|
|
|
sha512sums="
|
|
d98cc086b516fb0925b556c5ee68a23cb72769d2c6fffbf98f86cd328c28d58899d883cfc99936ae5f1380ec1ac8ea3bfc9307295f45b3400669c8a281ee9a6b chezmoi-2.62.5.tar.gz
|
|
6be6a032054e5d33ac74586c31381ab9332e8a22faff8ea2ff4248c4eddc3300243890c0e7d064db2648b336355115d597bf686aa70cea13b2250710ab885c9e makefile-quote-built-by.patch
|
|
e97dc023756fef63d64cdd4013325857a7c37724ed85fa48350f48bd472208cd0d8d325b53cce7ff5404f853f854a8bf4e1e7bb9e14b1835c6a025060aa463de test-increase-timeout.patch
|
|
"
|