net-misc/postman-bin: fix QA issues
Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
parent
d7aaf2affe
commit
32e4ed7a5c
@ -3,10 +3,10 @@
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit desktop pax-utils xdg
|
||||
|
||||
MY_PN="${PN/-bin/}"
|
||||
|
||||
inherit desktop pax-utils xdg
|
||||
|
||||
DESCRIPTION="Supercharge your API workflow"
|
||||
HOMEPAGE="https://www.postman.com"
|
||||
SRC_URI="https://dl.pstmn.io/download/version/${PV}/linux64 -> ${P}-amd64.tar.gz"
|
||||
@ -14,18 +14,17 @@ SRC_URI="https://dl.pstmn.io/download/version/${PV}/linux64 -> ${P}-amd64.tar.gz
|
||||
LICENSE="MPL-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
RESTRICT="mirror strip"
|
||||
RESTRICT="mirror strip test"
|
||||
|
||||
S="${WORKDIR}/${MY_PN^}/app"
|
||||
|
||||
src_install() {
|
||||
mkdir -p "${ED%/}/opt/${MY_PN}"
|
||||
cp -r . "${ED%/}/opt/${MY_PN}"
|
||||
newicon -s 128 resources/app/assets/icon.png ${MY_PN}.png
|
||||
dosym /opt/${MY_PN}/Postman /usr/bin/${MY_PN}
|
||||
make_desktop_entry "postman" \
|
||||
"Postman" \
|
||||
"postman" \
|
||||
"Development;IDE;"
|
||||
pax-mark m "${ED%/}/opt/${MY_PN}/${MY_PN^}"
|
||||
mkdir -p "${ED%}/opt/${MY_PN}" || die
|
||||
cp -r . "${ED%}/opt/${MY_PN}" || die
|
||||
|
||||
newicon -s 128 "resources/app/assets/icon.png" "${MY_PN}.png"
|
||||
dosym "../../opt/${MY_PN}/${MY_PN^}" "/usr/bin/${MY_PN}"
|
||||
make_desktop_entry "${MY_PN}" "${MY_PN^}" "${MY_PN}" "Development;IDE;"
|
||||
|
||||
pax-mark m "${ED%}/opt/${MY_PN}/${MY_PN^}"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user