forked from jgp19684u/frabjous
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrambox-bin-0.5.13.ebuild
78 lines (64 loc) · 1.66 KB
/
rambox-bin-0.5.13.ebuild
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit gnome2-utils xdg
MY_P=${P/-bin}
SRC_URI_BASE="https://github.com/saenzramiro/rambox/releases/download"
DESCRIPTION="Free, Open Source and Cross Platform messaging and emailing app"
HOMEPAGE="http://rambox.pro/"
SRC_URI="amd64? ( ${SRC_URI_BASE}/${PV}/${MY_P^}-x64.tar.gz -> ${P}-x64.tar.gz )
x86? ( ${SRC_URI_BASE}/${PV}/${MY_P^}-ia32.tar.gz -> ${P}-ia32.tar.gz )"
RESTRICT="mirror"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
RDEPEND="dev-libs/expat
dev-libs/libappindicator
dev-libs/nss
gnome-base/gconf
media-gfx/graphite2
media-libs/alsa-lib
media-libs/libpng
net-print/cups
net-libs/gnutls
sys-libs/zlib
x11-libs/gtk+
x11-libs/libnotify
x11-libs/libxcb
x11-libs/libXtst"
QA_PRESTRIPPED="/opt/rambox-bin/libffmpeg.so
/opt/rambox-bin/libnode.so
/opt/rambox-bin/rambox"
S="${WORKDIR}/${MY_P^}"
src_install() {
exeinto /opt/${PN}
doexe rambox
scanelf -Xe "${ED%/}"/opt/${PN}/rambox || die
insinto /opt/${PN}
doins -r locales resources
doins blink_image_resources_200_percent.pak \
content_resources_200_percent.pak \
content_shell.pak \
ui_resources_200_percent.pak \
views_resources_200_percent.pak \
icudtl.dat \
natives_blob.bin \
snapshot_blob.bin \
libnode.so \
libffmpeg.so
dosym ../../opt/${PN}/rambox /usr/bin/rambox-bin
doicon -s 128 "${FILESDIR}"/icon/rambox.png
make_desktop_entry rambox-bin Rambox "rambox" Network
}
pkg_preinst() {
xdg_pkg_preinst
gnome2_icon_savelist
}
pkg_postinst() {
xdg_pkg_postinst
gnome2_icon_cache_update
}
pkg_postrm() {
xdg_pkg_postrm
gnome2_icon_cache_update
}