Date: Sunday, July 4, 2021 @ 08:49:14 Author: daurnimator Revision: 972000
archrelease: copy trunk to community-x86_64 Added: chezmoi/repos/community-x86_64/PKGBUILD (from rev 971999, chezmoi/trunk/PKGBUILD) Deleted: chezmoi/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 112 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 56 insertions(+), 56 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-07-04 08:48:41 UTC (rev 971999) +++ PKGBUILD 2021-07-04 08:49:14 UTC (rev 972000) @@ -1,56 +0,0 @@ -# Maintainer: Daurnimator <daurnima...@archlinux.org> -# Contributor: Tom Payne <twpa...@gmail.com> -# Contributor: <godea...@gmail.com> - -pkgname=chezmoi -pkgver=2.1.0 -pkgrel=1 -pkgdesc="Manage your dotfiles across multiple machines" -arch=('x86_64') -url='https://www.chezmoi.io/' -license=('MIT') -makedepends=('go' 'git') -depends=('glibc') -source=("${pkgname}-${pkgver}.tar.gz::https://github.com/twpayne/chezmoi/archive/v${pkgver}.tar.gz") -sha512sums=('4324967cdac6440f5602aab60a5cb3c012a26d7ea218ac6fac0a69c072c9289daf0c1b35c47a2c72dc70371ddd968de11cc5d52a14d64101c98895144fe7b9b6') - -build() { - cd "$pkgname-$pkgver" - - export CGO_LDFLAGS="${LDFLAGS}" - export CGO_CFLAGS="${CFLAGS}" - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - go build \ - -trimpath \ - -buildmode=pie \ - -mod=readonly \ - -modcacherw \ - -tags noupgrade,noembeddocs \ - -ldflags "-X github.com/twpayne/chezmoi/cmd.DocsDir=/usr/share/doc/$pkgname \ - -X main.version=$pkgver \ - -X main.date=$(date -u +'%Y-%m-%dT%H:%M:%SZ' --date=@${SOURCE_DATE_EPOCH}) \ - -extldflags ${LDFLAGS}" \ - . -} - -check() { - cd "$pkgname-$pkgver" - - go test -v ./... -} - -package() { - cd "$pkgname-$pkgver" - - install -D "$pkgname" "$pkgdir/usr/bin/$pkgname" - - mkdir -p "$pkgdir/usr/share/doc/$pkgname" - install -Dm644 docs/*.md "$pkgdir/usr/share/doc/$pkgname/" - - install -Dm644 completions/chezmoi-completion.bash "$pkgdir/usr/share/bash-completion/completions/chezmoi" - install -Dm644 completions/chezmoi.fish "$pkgdir/usr/share/fish/vendor_completions.d/chezmoi.fish" - install -Dm644 completions/chezmoi.zsh "$pkgdir/usr/share/zsh/site-functions/_chezmoi" - - install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" -} Copied: chezmoi/repos/community-x86_64/PKGBUILD (from rev 971999, chezmoi/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-07-04 08:49:14 UTC (rev 972000) @@ -0,0 +1,56 @@ +# Maintainer: Daurnimator <daurnima...@archlinux.org> +# Contributor: Tom Payne <twpa...@gmail.com> +# Contributor: <godea...@gmail.com> + +pkgname=chezmoi +pkgver=2.1.0 +pkgrel=1 +pkgdesc="Manage your dotfiles across multiple machines" +arch=('x86_64') +url='https://www.chezmoi.io/' +license=('MIT') +makedepends=('go' 'git') +depends=('glibc') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/twpayne/chezmoi/archive/v${pkgver}.tar.gz") +sha512sums=('4324967cdac6440f5602aab60a5cb3c012a26d7ea218ac6fac0a69c072c9289daf0c1b35c47a2c72dc70371ddd968de11cc5d52a14d64101c98895144fe7b9b6') + +build() { + cd "$pkgname-$pkgver" + + export CGO_LDFLAGS="${LDFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + go build \ + -trimpath \ + -buildmode=pie \ + -mod=readonly \ + -modcacherw \ + -tags noupgrade,noembeddocs \ + -ldflags "-X github.com/twpayne/chezmoi/cmd.DocsDir=/usr/share/doc/$pkgname \ + -X main.version=$pkgver \ + -X main.date=$(date -u +'%Y-%m-%dT%H:%M:%SZ' --date=@${SOURCE_DATE_EPOCH}) \ + -extldflags ${LDFLAGS}" \ + . +} + +check() { + cd "$pkgname-$pkgver" + + go test -v ./... +} + +package() { + cd "$pkgname-$pkgver" + + install -D "$pkgname" "$pkgdir/usr/bin/$pkgname" + + mkdir -p "$pkgdir/usr/share/doc/$pkgname" + install -Dm644 docs/*.md "$pkgdir/usr/share/doc/$pkgname/" + + install -Dm644 completions/chezmoi-completion.bash "$pkgdir/usr/share/bash-completion/completions/chezmoi" + install -Dm644 completions/chezmoi.fish "$pkgdir/usr/share/fish/vendor_completions.d/chezmoi.fish" + install -Dm644 completions/chezmoi.zsh "$pkgdir/usr/share/zsh/site-functions/_chezmoi" + + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}