Gentoo Archives: gentoo-commits

From: Samuel Bernardo <samuelbernardo.mail@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/user/ssnb:master commit in: net-im/stride-bin/
Date: Sun, 06 May 2018 11:35:56
Message-Id: 1525606534.ef2c9764d6ac7057a1a8ef4864cc078b0aba5d32.samuelbernardo@gentoo
1 commit: ef2c9764d6ac7057a1a8ef4864cc078b0aba5d32
2 Author: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
3 AuthorDate: Sun May 6 11:35:34 2018 +0000
4 Commit: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
5 CommitDate: Sun May 6 11:35:34 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/user/ssnb.git/commit/?id=ef2c9764
7
8 add stride-bin app
9
10 net-im/stride-bin/Manifest | 2 +
11 net-im/stride-bin/stride-bin-1.17.82.ebuild | 63 +++++++++++++++++++++++++++++
12 2 files changed, 65 insertions(+)
13
14 diff --git a/net-im/stride-bin/Manifest b/net-im/stride-bin/Manifest
15 new file mode 100644
16 index 0000000..eacd6fd
17 --- /dev/null
18 +++ b/net-im/stride-bin/Manifest
19 @@ -0,0 +1,2 @@
20 +DIST stride-bin-1.17.82.deb 50374678 BLAKE2B 1c96c309e476ab2dcbac252e3f308483fcf0a15ddc9fffacb9496e5e3325ffd2293b756ad56e9473692f5999290197914736c3d859c61178069d86d6b31a2dfa SHA512 5f01b40923e3f3a7174e0e40ad3d7f0c35c4cf5393f5eec99e93605e0bccd64d94b8afea5cdf074567336c2f5fb71791733ee3959a174affe708a57b21c560c6
21 +EBUILD stride-bin-1.17.82.ebuild 1290 BLAKE2B 7c6f59858884bf5b1fcbd95750ca2cfb1ac7a5463a25e3bb8570961a972d8102057351833c01a4bc2499fc48183b66d658ea40585f7acea2b2eb25e9c359a3e0 SHA512 5d6875c6366b539643a59d58e0de2a4c724f80c75143dbd1d880eeed72e8857fc6793d482c7c5953637cb990597b53d6b44f902a8dc18389909646d196c58c86
22
23 diff --git a/net-im/stride-bin/stride-bin-1.17.82.ebuild b/net-im/stride-bin/stride-bin-1.17.82.ebuild
24 new file mode 100644
25 index 0000000..5b8aa93
26 --- /dev/null
27 +++ b/net-im/stride-bin/stride-bin-1.17.82.ebuild
28 @@ -0,0 +1,63 @@
29 +# Copyright 1999-2017 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI=6
33 +
34 +inherit eutils gnome2-utils unpacker xdg-utils xdg versionator
35 +
36 +MY_PN="${PN/-bin/}"
37 +
38 +DESCRIPTION="Stride desktop client"
39 +HOMEPAGE="https://www.stride.com/"
40 +SRC_URI="https://packages.atlassian.com/${MY_PN}-apt-client/pool/${MY_PN}_${PV}_amd64.deb -> ${P}.deb"
41 +LICENSE="no-source-code"
42 +RESTRICT="mirror"
43 +
44 +SLOT="$(get_major_version)"
45 +KEYWORDS="~amd64"
46 +IUSE=""
47 +
48 +DEPEND=""
49 +RDEPEND=""
50 +
51 +QA_PREBUILT="opt/${PN}/*"
52 +
53 +S="${WORKDIR}/usr/lib/${MY_PN}"
54 +
55 +src_prepare() {
56 + sed -i -e 's:Network;::' "${WORKDIR}/usr/share/applications/${MY_PN}.desktop"
57 + eapply_user
58 +}
59 +
60 +src_install() {
61 + exeinto "/opt/${PN}"
62 + doexe "${MY_PN}"
63 +
64 + insinto "/opt/${PN}"
65 + doins *.pak *.so icudtl.dat natives_blob.bin snapshot_blob.bin version
66 + doins -r locales resources
67 +
68 + insinto /usr/share
69 + doins -r "${WORKDIR}/usr/share/icons"
70 +
71 + make_wrapper "${MY_PN}" "./${MY_PN}" "/opt/${PN}" .
72 +
73 + domenu "${WORKDIR}/usr/share/applications/${MY_PN}.desktop"
74 +}
75 +
76 +pkg_preinst() {
77 + xdg_pkg_preinst
78 + gnome2_icon_savelist
79 +}
80 +
81 +pkg_postinst() {
82 + xdg_desktop_database_update
83 + xdg_mimeinfo_database_update
84 + gnome2_icon_cache_update
85 +}
86 +
87 +pkg_postrm() {
88 + xdg_desktop_database_update
89 + xdg_mimeinfo_database_update
90 + gnome2_icon_cache_update
91 +}