pentoo-overlay/net-proxy/insomnia-bin/insomnia-bin-2023.1.0.ebuild
2023-03-14 01:00:36 +08:00

27 lines
771 B
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="Insomnia.Core"
DESCRIPTION="REST API client, a postman alternative"
HOMEPAGE="https://github.com/Kong/insomnia https://insomnia.rest/"
SRC_URI="https://github.com/Kong/insomnia/releases/download/core%40${PV}/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64"
S="${WORKDIR}/${MY_PN}-${PV}"
QA_PREBUILT="opt/Insomnia.Core/insomnia /opt/Insomnia.Core/chrome-sandbox
opt/Insomnia.Core/chrome_crashpad_handler
opt/Insomnia.Core/*.so.1
opt/Insomnia.Core/*.so"
src_install() {
dodir /opt/${MY_PN}
cp -R "${S}"/* "${D}"/opt/${MY_PN} || die "Copy files failed"
dosym "${EPREFIX}"/opt/${MY_PN}/insomnia /usr/bin/insomnia
}