Skip to content
Permalink
Browse files

cyberchef: 9.0.5 bump

  • Loading branch information...
linxon committed Aug 13, 2019
1 parent 4cd727b commit eb58624110cd5d6fc01e5be818de4cf763094b19
Showing with 68 additions and 0 deletions.
  1. +1 −0 app-misc/cyberchef/Manifest
  2. +67 −0 app-misc/cyberchef/cyberchef-9.0.5.ebuild
@@ -1 +1,2 @@
DIST cyberchef-9.0.4.zip 17496699 BLAKE2B 0f54d0731cc4ab2e80683c32e864ad43700c694cf1c79ee08a89e12ec6a93945b8136ad1eed4f68307d25ae0f2174cfdbfa5e2805d40f9f67bb35a912d964bb3 SHA512 2964f2198c1a748f010dc2ceefecbe93e6ec43b06f9e55bb8f89651c237c4cea3297113e0aad418fa311dc855367cf0ca4a3dab37fa6823f1df106e3792b40bb
DIST cyberchef-9.0.5.zip 17496699 BLAKE2B f3b0c19225f12865760509059c4be7f5d97972da92f0e1f26776a34193f6992948ff77839e107c8810ec253ea342de45d68c855f0a92b139e1993645a28de7c3 SHA512 d93ec7655fcd2b0911515dfa9b9b6ecfa78f8861212a2bc20516f439d48cfb69f3e112ccc355f9bb2fd08d543c1566d0b4b536f4896adc6e3e0f9f82d7b25936
@@ -0,0 +1,67 @@
# Copyright 1999-2019 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
}

0 comments on commit eb58624

Please sign in to comment.
You can’t perform that action at this time.