# Copyright 2026 Nadeŭka <me+oss@nadevko.cc>
# Distributed under the terms of the GNU General Public License v2
EAPI=8

inherit go-module

DESCRIPTION='Google Authenticator migration decoder'
HOMEPAGE=https://github.com/dim13/otpauth
SRC_URI="
	https://github.com/dim13/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	${P}-vendor.tar.xz
"

LICENSE='BSD ISC MIT'
SLOT=0
KEYWORDS=~amd64

BDEPEND='
	>=dev-lang/go-1.24
'

src_compile() {
	ego build
}

src_install() {
	# bins & wrappers
	dobin ${PN}

	# docs
	einstalldocs
}