app-misc/cyberchef: 9.21.0

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Yury Martynov <email@linxon.ru>
This commit is contained in:
Yury Martynov 2020-07-19 19:09:27 +03:00
parent 1143b8edcf
commit 87d3543ae8
No known key found for this signature in database
GPG key ID: EBE62DD0CCEAE19E
2 changed files with 66 additions and 0 deletions

View file

@ -1,2 +1,3 @@
DIST cyberchef-9.18.0.zip 32286481 BLAKE2B 5bf77df514918c23271428562225a54b83a27e632a8ed1a8db30282dd59de4681ff364b9cc066637ea0ac2b3529e23222e06730dd79f1e02e42f277d02d3b95c SHA512 94fe172e00177ead5cfd919963039b5943d4de397f68676d9938fce9646955d55529c8dbb36e02d86524ad2ef3411772f8b47de55442193353d39bd943487a84
DIST cyberchef-9.20.3.zip 32609916 BLAKE2B 4097fccc1701a93f7bc24bbae5355afe2a9d61027a4dc88086854cef510b18974730ddecb23963603bf41b3b2c6a6f14d909bf4528c92d645ea0b1fc541974bd SHA512 aaec3709dd74267b3de419e08eba9fc1c1569e7af299f110bb07926c010afb4dcb5eced49cb464355003705a8952ee5d68ce9ab0e4fcd461cea6159ac8f4c83b
DIST cyberchef-9.21.0.zip 35758786 BLAKE2B b86d92b781ef88487dd994513dd472ed7cd5c810975b78c79b8201437e4a235ae9c7e0acb84a0146f8b6a85eb6bf763a27b4642651454844fcd7f4e28b121b51 SHA512 71e70987f0aa0aa01a4c1caa483ac1af3fdde52a564145fe31580375bbfce9799afbd928d70805359010c7c78b2c85d87eb58e104bc641aa05003c0336acdbaf

View file

@ -0,0 +1,65 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit eutils desktop xdg-utils
DESCRIPTION="A web app for encryption, encoding, compression and data analysis (offline)"
HOMEPAGE="https://gchq.github.io/CyberChef"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/gchq/CyberChef"
else
SRC_URI="https://github.com/gchq/CyberChef/releases/download/v${PV}/CyberChef_v${PV}.zip -> ${P}.zip"
KEYWORDS="~amd64 ~arm64 ~x86"
S="${WORKDIR}"
fi
LICENSE="Apache-2.0"
SLOT=0
IUSE=""
RDEPEND="
app-arch/unzip
x11-misc/xdg-utils"
src_install() {
insinto "/usr/share/${PN}"
doins -r .
dosym "../${PN}/images/cyberchef-128x128.png" \
"/usr/share/pixmaps/${PN}.png"
make_wrapper "${PN}" \
"xdg-open /usr/share/${PN}/CyberChef_v${PV}.html"
make_desktop_entry $PN \
"CyberChef" $PN \
"Utility;Development"
}
pkg_postinst() {
einfo "\nInstall your favorite web browser and make it as default (it is not necessary in Pentoo)"
einfo "Example:"
einfo " ~$ xdg-mime default firefox.desktop text/html"
einfo " ~$ xdg-settings set default-web-browser firefox.desktop\n"
#for x in \
# "www-client/firefox-bin" \
# "www-client/firefox" \
# "www-client/chromium" \
# "www-client/google-chrome" \
# "www-client/google-chrome-beta" \
# "www-client/google-chrome-unstable"
#do
# optfeature "${PN} support" "${x}"
#done
xdg_icon_cache_update
xdg_desktop_database_update
}
pkg_postrm() {
xdg_icon_cache_update
xdg_desktop_database_update
}