-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c2009d
commit d287980
Showing
4 changed files
with
528 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
DIST chezmoi-2.48.2.tar.gz 2455889 BLAKE2B f7ffcb059335f7fdaf06f8693a5837c8a1a2f9a157a2b6ded819d77cd602c35a937ae4090a476e483915d281443e71000cd662588b26caa1f5cfc5677c7fb6ef SHA512 080d45df25d4bd6305d2124e436dd75f57f1de85fddfa9956c6f2ebe664f8ec153a5c52130de9808b83061ef2641e97688defb366ed185ec8cd12e3618370995 | ||
DIST chezmoi-2.49.0.tar.gz 2457390 BLAKE2B 7419b794396584b3cfeca86abde10b29e77ef726a378561240fe47c199ff1157f00d70f115117829855e2854f6e75d76e7f48a5a5a32b3fb3743ae6056307a8f SHA512 aa0a3121e57541c1d5078f65cae0b04ebae0f2e1f4268c82644384d6cabc00925d7df9b5a34c24c4a2ed09788fc4a360636f7c4a9a0d1a7c11f1872384d80f5a | ||
DIST deps.tar.xz 275510268 BLAKE2B d2bc8d0deb3a41d20f6366d4299a0e337b7b6050c0de76019d54de97e098dd886a297d3e130d60ff3c0667a6dd7645d1940ec317e0a8408b787bb80ff6430c09 SHA512 5c5251dcfa8c70aa176d70e1c935d4e26879cbe9afad53bb6a1bac08acacdbcc0ea67e2fdb50cf8fcef820f0a582a78a4ad3aa82099def863abf668f49f7d269 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Copyright 2020-2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
inherit go-module | ||
|
||
VERSION_GIT_HASH="2e0573779db0c42717585ac8abc4ad1ab814dfb2" | ||
|
||
DESCRIPTION="Manage your dotfiles across multiple diverse machines, securely" | ||
HOMEPAGE="https://www.chezmoi.io/" | ||
SRC_URI="https://github.com/twpayne/chezmoi/archive/v${PV}.tar.gz -> ${P}.tar.gz" | ||
SRC_URI+=" https://gentoo.rgst.io/updater_artifacts/${CATEGORY}/${PN}/${PV}/deps.tar.xz" | ||
|
||
LICENSE="MIT" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~arm arm64 ~riscv ~x86" | ||
|
||
BDEPEND=">=dev-lang/go-1.21" | ||
|
||
RESTRICT="test" | ||
|
||
# This was added based on the .goreleaser.yml file in the upstream | ||
# repository. | ||
build_dist() { | ||
ego build \ | ||
-ldflags \ | ||
"-s -w -X main.version=v${PV} -X main.commit=${VERSION_GIT_HASH} -X main.date=$(date "+%Y-%m-%dT%H:%M:%SZ") -X main.builtBy=ebuild" "$@" | ||
} | ||
|
||
src_prepare() { | ||
# Replaces generate-commit.go step. | ||
echo -n "$VERSION_GIT_HASH" >COMMIT | ||
default | ||
} | ||
|
||
src_compile() { | ||
build_dist ./ | ||
} | ||
|
||
src_install() { | ||
dobin chezmoi | ||
} |
Oops, something went wrong.