blob: eef477ff9956e74af17980326eaad19a71cc49d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit gnome2-utils eutils rpm xdg
DESCRIPTION="A messaging app for teams"
HOMEPAGE="https://slack.com/"
SRC_URI="https://downloads.slack-edge.com/linux_releases/${P}-0.1.fc21.x86_64.rpm"
LICENSE="Slack"
RESTRICT="mirror"
SLOT="0"
KEYWORDS="~amd64 -*"
IUSE="plasma"
QA_PREBUILT="usr/lib/slack/*"
DEPEND=""
RDEPEND="
plasma? ( dev-libs/libappindicator:2 )
>=gnome-base/gconf-3.2.6-r4
>=gnome-base/libgnome-keyring-3.12.0
>=x11-libs/libXScrnSaver-1.2.2-r1
"
S=${WORKDIR}
src_unpack() {
rpm_unpack ${A}
}
src_prepare() {
rm etc/cron.daily/slack \
usr/lib/slack/LICENSE
eapply_user
}
src_install() {
cp -a . "${D}" || die
make_desktop_entry ${PN} "Slack" /usr/share/pixmaps/${PN}.png "Network"
}
pkg_preinst() {
xdg_pkg_preinst
gnome2_icon_savelist
}
pkg_postinst() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
gnome2_icon_cache_update
}
pkg_postrm() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
gnome2_icon_cache_update
}
|