summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-12-27 08:08:56 +0100
committerHans de Graaff <graaff@gentoo.org>2022-12-27 08:08:56 +0100
commitf54efa8eb5e1af63b435598b3cbba0c6f8d6c511 (patch)
tree733fd52b9dc39cd4c065b8e644d0b094c3af2aee /app-crypt/age/age-1.1.1.ebuild
parentdev-ruby/gpgme: add 2.0.22 (diff)
downloadgentoo-f54efa8eb5e1af63b435598b3cbba0c6f8d6c511.tar.gz
gentoo-f54efa8eb5e1af63b435598b3cbba0c6f8d6c511.tar.bz2
gentoo-f54efa8eb5e1af63b435598b3cbba0c6f8d6c511.zip
app-crypt/age: add 1.1.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'app-crypt/age/age-1.1.1.ebuild')
-rw-r--r--app-crypt/age/age-1.1.1.ebuild33
1 files changed, 33 insertions, 0 deletions
diff --git a/app-crypt/age/age-1.1.1.ebuild b/app-crypt/age/age-1.1.1.ebuild
new file mode 100644
index 000000000000..38d405360142
--- /dev/null
+++ b/app-crypt/age/age-1.1.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2022 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"
+
+BDEPEND="dev-go/gox"
+
+src_compile() {
+ go build -ldflags "-X main.Version=${PV}" -o . filippo.io/age/cmd/... || die
+}
+
+src_test() {
+ go test -race filippo.io/age/cmd/... || die
+}
+
+src_install() {
+ dobin age age-keygen
+ doman doc/age.1 doc/age-keygen.1
+ dodoc README.md
+}