mirror of
https://github.com/gentoo-mirror/gentoo-zh.git
synced 2025-04-10 11:58:43 -04:00
31 lines
548 B
Bash
31 lines
548 B
Bash
# Copyright 1999-2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit unpacker
|
|
|
|
MY_PN="${PN/-bin/}_linux_amd64"
|
|
|
|
DESCRIPTION="yq is a portable command-line YAML, JSON and XML processor"
|
|
HOMEPAGE="https://github.com/mikefarah/yq"
|
|
|
|
SRC_URI="https://github.com/mikefarah/yq/releases/download/v${PV}/${MY_PN}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
RESTRICT="mirror"
|
|
|
|
RDEPEND="!app-misc/yq"
|
|
|
|
S="${WORKDIR}"
|
|
|
|
QA_PREBUILT="*"
|
|
|
|
src_install() {
|
|
doman yq.1
|
|
newbin ${MY_PN} yq
|
|
}
|