gentoo-ebuilds/app-crypt/age/age-1.2.1.ebuild
Sam James ae8594e0a0
app-crypt/age: Stabilize 1.2.1 amd64, #955504
Signed-off-by: Sam James <sam@gentoo.org>
2025-05-06 13:31:06 +01:00

31 lines
737 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="A simple, modern and secure encryption tool (and Go library)"
HOMEPAGE="https://github.com/FiloSottile/age"
SRC_URI="https://github.com/FiloSottile/age/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://dev.gentoo.org/~graaff/age/${P}-deps.tar.xz"
S="${WORKDIR}/age-${PV}"
LICENSE="BSD"
#RESTRICT+=" test"
SLOT="0"
KEYWORDS="amd64 ~arm64"
src_compile() {
ego build -ldflags "-X main.Version=${PV}" -o . filippo.io/age/cmd/... || die
}
src_test() {
ego test filippo.io/age/cmd/... || die
}
src_install() {
dobin age age-keygen
doman doc/age.1 doc/age-keygen.1
dodoc README.md
}