mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
app-admin/himitsu-totp: add 0.1
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
1
app-admin/himitsu-totp/Manifest
Normal file
1
app-admin/himitsu-totp/Manifest
Normal file
@@ -0,0 +1 @@
|
|||||||
|
DIST himitsu-totp-0.1.tar.gz 15188 BLAKE2B c5165556e67440e847f9ee6ab653705f22953b08a678e6a865e9d0fe2946b8ad755e685b62b0bdf5dc9c5f44698d85c8095bd8b2b43f5731721c26e407868955 SHA512 767dbfc0bee2942e4b2a75ea2e76ec39f06bcc979cd6f6f1e63d7e64d4f26c311458f47c282915f0e6f4ea39582510b4f516ac76251acb617105495f9bdfeb30
|
||||||
32
app-admin/himitsu-totp/himitsu-totp-0.1.ebuild
Normal file
32
app-admin/himitsu-totp/himitsu-totp-0.1.ebuild
Normal 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
|
||||||
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# Copyright 2022 Gentoo Authors
|
# Copyright 2022-2024 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
@@ -27,17 +27,6 @@ BDEPEND="app-text/scdoc"
|
|||||||
# hare binary
|
# hare binary
|
||||||
QA_FLAGS_IGNORED="usr/bin/hitotp"
|
QA_FLAGS_IGNORED="usr/bin/hitotp"
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
|
|
||||||
sed -i 's|^use query;|use himitsu::query;|' cmd/hitotp/main.ha || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
sed -i 's;^PREFIX=.*;PREFIX=/usr;' Makefile || die
|
sed -i 's;^PREFIX=.*;PREFIX=/usr;' Makefile || die
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
|
||||||
einstalldocs
|
|
||||||
dobin hitotp
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user