You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-crypt/age/age-1.1.1.ebuild

34 lines
757 B

# Copyright 1999-2023 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"
BDEPEND="dev-go/gox"
src_compile() {
go build -ldflags "-X main.Version=${PV}" -o . filippo.io/age/cmd/... || die
}
src_test() {
go test filippo.io/age/cmd/... || die
}
src_install() {
dobin age age-keygen
doman doc/age.1 doc/age-keygen.1
dodoc README.md
}