mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 12:03:02 -04:00
dev-util/stripe-cli add
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
This commit is contained in:
8
dev-util/stripe-cli/metadata.xml
Normal file
8
dev-util/stripe-cli/metadata.xml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person" proxied="yes">
|
||||||
|
<email>zdanevich.vitaly@ya.ru</email>
|
||||||
|
<name>Vitaly Zdanevich</name>
|
||||||
|
</maintainer>
|
||||||
|
</pkgmetadata>
|
||||||
31
dev-util/stripe-cli/stripe-cli-9999.ebuild
Normal file
31
dev-util/stripe-cli/stripe-cli-9999.ebuild
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
EAPI=7
|
||||||
|
|
||||||
|
EGO_PN=github.com/stripe/stripe-cli
|
||||||
|
|
||||||
|
inherit git-r3 go-module bash-completion-r1
|
||||||
|
|
||||||
|
# remove -cli suffix
|
||||||
|
MY_PN=${PN%-cli}
|
||||||
|
|
||||||
|
DESCRIPTION="A command-line tool for Stripe"
|
||||||
|
HOMEPAGE="https://stripe.com/docs/stripe-cli"
|
||||||
|
EGIT_REPO_URI="https://${EGO_PN}.git"
|
||||||
|
SLOT="0"
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
KEYWORDS="~amd64 ~arm64 ~x86 ~i386"
|
||||||
|
BDEPEND=">=dev-lang/go-1.18"
|
||||||
|
DEPEND="${BDEPEND}"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
git-r3_src_unpack
|
||||||
|
go-module_live_vendor
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
ego build -o ${MY_PN} cmd/stripe/main.go
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin ${MY_PN}
|
||||||
|
dobashcomp *.bash
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user