app-admin/himitsu-totp: add 0.1

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
Haelwenn (lanodan) Monnier
2024-04-01 06:56:53 +02:00
parent 7a6ebc5d1e
commit 7620cb3e3f
3 changed files with 34 additions and 12 deletions

View File

@@ -0,0 +1 @@
DIST himitsu-totp-0.1.tar.gz 15188 BLAKE2B c5165556e67440e847f9ee6ab653705f22953b08a678e6a865e9d0fe2946b8ad755e685b62b0bdf5dc9c5f44698d85c8095bd8b2b43f5731721c26e407868955 SHA512 767dbfc0bee2942e4b2a75ea2e76ec39f06bcc979cd6f6f1e63d7e64d4f26c311458f47c282915f0e6f4ea39582510b4f516ac76251acb617105495f9bdfeb30

View File

@@ -0,0 +1,32 @@
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
if [[ "${PV}" = "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/himitsu-totp"
else
SRC_URI="https://git.sr.ht/~sircmpwn/himitsu-totp/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~riscv"
fi
DESCRIPTION="TOTP support for Himitsu"
HOMEPAGE="https://git.sr.ht/~sircmpwn/himitsu-totp"
LICENSE="GPL-3"
SLOT="0"
RDEPEND="app-admin/himitsu:="
DEPEND="
${RDEPEND}
dev-lang/hare:=
"
BDEPEND="app-text/scdoc"
# hare binary
QA_FLAGS_IGNORED="usr/bin/hitotp"
src_configure() {
sed -i 's;^PREFIX=.*;PREFIX=/usr;' Makefile || die
}

View File

@@ -1,4 +1,4 @@
# Copyright 2022 Gentoo Authors
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -27,17 +27,6 @@ BDEPEND="app-text/scdoc"
# hare binary
QA_FLAGS_IGNORED="usr/bin/hitotp"
src_prepare() {
default
sed -i 's|^use query;|use himitsu::query;|' cmd/hitotp/main.ha || die
}
src_configure() {
sed -i 's;^PREFIX=.*;PREFIX=/usr;' Makefile || die
}
src_install() {
einstalldocs
dobin hitotp
}