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

inherit git-r3 go-module

DESCRIPTION='Google Authenticator migration link and QR-code decoder'
HOMEPAGE=https://github.com/dim13/otpauth
EGIT_REPO_URI=https://github.com/dim13/otpauth.git

LICENSE='BSD ISC MIT'
SLOT=0

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

src_unpack() {
	git-r3_src_unpack
	go-module_live_vendor
}

src_compile() {
	ego build
}

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

	# docs
	einstalldocs
}