Add =net-im/rocketchat-bin-2.17.7
This commit is contained in:
parent
57dfb5d082
commit
68060db492
|
@ -0,0 +1,2 @@
|
|||
DIST rocketchat_2.17.7_amd64.deb 52122070 BLAKE2B abd69c0e06e8253b8faf0f483835b576cf03ebe1e125c1fdda022d2e7fcfda27160af2a5b99f5ed750a899d7bd07638c1d96449a5cc48dbf9a803100baa84aa7 SHA512 3053879f5d39d84170ab4fac1c15c35e79d17491f81351c86da4cda0560ceef18f4204c13b139f0b983ff657c9369ebf5b4daba852e0e1b555eae67a68a3c653
|
||||
EBUILD rocketchat-bin-2.17.7.ebuild 1857 BLAKE2B ee350d32733a6879d0dff3e7e703dea9e880f8835763255b424b2f38b098515448d0aacc36d7006cefa0caaa4051f5f9e9b1e94471ec510b13e994d8f38fcd8d SHA512 0cddc93f3a716c34975c9e9f64bc0a4656b7e1bee3a78a26a74d25e8b08684854906cce30f4370179ab52f679a4c5750cc3c78ad65d1dd828e53741850f0f1ba
|
|
@ -0,0 +1,87 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
MY_PN="${PN%-bin}"
|
||||
|
||||
inherit eutils gnome2-utils unpacker xdg-utils
|
||||
|
||||
DESCRIPTION="Have your own Slack like online chat, built with Meteor."
|
||||
HOMEPAGE="https://rocket.chat"
|
||||
|
||||
BASE_URI="https://github.com/RocketChat/Rocket.Chat.Electron/releases/download/${PV}"
|
||||
|
||||
SRC_URI="
|
||||
amd64? ( "${BASE_URI}/${PN%-bin}_${PV}_amd64.deb" )
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
RESTRICT=""
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/atk:0
|
||||
dev-libs/expat:0
|
||||
dev-libs/glib:2
|
||||
dev-libs/nspr:0
|
||||
dev-libs/nss:0
|
||||
gnome-base/gconf:2
|
||||
media-libs/alsa-lib:0
|
||||
media-libs/fontconfig:1.0
|
||||
media-libs/freetype:2
|
||||
net-print/cups:0
|
||||
sys-apps/dbus:0
|
||||
sys-libs/glibc:2.2
|
||||
x11-libs/cairo:0
|
||||
x11-libs/gdk-pixbuf:2
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/libX11:0
|
||||
x11-libs/libxcb:0/1.12
|
||||
x11-libs/libXcomposite:0
|
||||
x11-libs/libXcursor:0
|
||||
x11-libs/libXdamage:0
|
||||
x11-libs/libXext:0
|
||||
x11-libs/libXfixes:0
|
||||
x11-libs/libXi:0
|
||||
x11-libs/libXrandr:0
|
||||
x11-libs/libXrender:0
|
||||
x11-libs/libXScrnSaver:0
|
||||
x11-libs/libXtst:0
|
||||
x11-libs/pango:0
|
||||
"
|
||||
|
||||
QA_PREBUILT="opt/${MY_PN}/${MY_PN} opt/${MY_PN}/libnode.so opt/${MY_PN}/libffmpeg.so"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_prepare() {
|
||||
sed -r \
|
||||
-e "s@/opt/Rocket.Chat@/opt/${MY_PN}@g" \
|
||||
-i "usr/share/applications/${MY_PN}-desktop.desktop"
|
||||
default
|
||||
}
|
||||
|
||||
src_install() {
|
||||
rm -r usr/share/doc
|
||||
|
||||
newicon -s 512 "usr/share/icons/hicolor/512x512/apps/${MY_PN}-desktop.png" "${MY_PN}.png"
|
||||
domenu "usr/share/applications/${MY_PN}-desktop.desktop"
|
||||
|
||||
insinto "/opt/${MY_PN}"
|
||||
doins -r "opt/Rocket.Chat/."
|
||||
fperms +x "/opt/${MY_PN}/${MY_PN}-desktop"
|
||||
make_wrapper "${MY_PN}" "${EPREFIX}/opt/${MY_PN}/${MY_PN}-desktop" "${EPREFIX}/opt/${MY_PN}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
gnome2_icon_cache_update
|
||||
}
|
Loading…
Reference in New Issue