1 |
commit: 3408e72eb3c5bfa06978c54b4e1e0070fb45d9fc |
2 |
Author: Matthew Bakhtiari <dev <AT> mtbk <DOT> me> |
3 |
AuthorDate: Tue Jun 29 21:17:21 2021 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 29 21:17:21 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3408e72e |
7 |
|
8 |
net-im/discord-ptb-bin: New Package |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Matthew <dev <AT> mtbk.me> |
12 |
|
13 |
net-im/discord-ptb-bin/Manifest | 1 + |
14 |
.../discord-ptb-bin/discord-ptb-bin-0.0.25.ebuild | 89 ++++++++++++++++++++++ |
15 |
net-im/discord-ptb-bin/metadata.xml | 8 ++ |
16 |
3 files changed, 98 insertions(+) |
17 |
|
18 |
diff --git a/net-im/discord-ptb-bin/Manifest b/net-im/discord-ptb-bin/Manifest |
19 |
new file mode 100644 |
20 |
index 000000000..f68000e37 |
21 |
--- /dev/null |
22 |
+++ b/net-im/discord-ptb-bin/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST discord-ptb-0.0.25.deb 71615052 BLAKE2B 04d822378934ebb5b68f34ca56ef863aa48a232cf08689a44e60ea25a378edc45891ff3033a07620453ac5b1143fbab63675a05bd41b015f9f40d5d1fb4ba31e SHA512 71b6eee347252cbc5e4daf2a85b1f18a9e3b0c602354a37922335c07b85e71918b2fe541418f767efa2db8e1832aca02984298c87058e6e3c9244d61f24a25c7 |
25 |
|
26 |
diff --git a/net-im/discord-ptb-bin/discord-ptb-bin-0.0.25.ebuild b/net-im/discord-ptb-bin/discord-ptb-bin-0.0.25.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000..81cdac799 |
29 |
--- /dev/null |
30 |
+++ b/net-im/discord-ptb-bin/discord-ptb-bin-0.0.25.ebuild |
31 |
@@ -0,0 +1,89 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+MY_PN=${PN/-bin/} |
38 |
+MY_BIN="D${MY_PN/d/}" |
39 |
+MY_BIN="${MY_BIN/-ptb/}PTB" |
40 |
+ |
41 |
+inherit desktop linux-info pax-utils unpacker xdg |
42 |
+ |
43 |
+DESCRIPTION="All-in-one voice and text chat" |
44 |
+HOMEPAGE="https://discordapp.com/" |
45 |
+SRC_URI="https://dl-ptb.discordapp.net/apps/linux/${PV}/${MY_PN}-${PV}.deb" |
46 |
+ |
47 |
+LICENSE="all-rights-reserved" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64" |
50 |
+RESTRICT="mirror bindist" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ app-accessibility/at-spi2-atk:2 |
54 |
+ app-accessibility/at-spi2-core:2 |
55 |
+ dev-libs/atk |
56 |
+ dev-libs/expat |
57 |
+ dev-libs/glib:2 |
58 |
+ dev-libs/nspr |
59 |
+ dev-libs/nss |
60 |
+ media-libs/alsa-lib |
61 |
+ media-libs/fontconfig:1.0 |
62 |
+ media-libs/freetype:2 |
63 |
+ net-print/cups |
64 |
+ sys-apps/dbus |
65 |
+ sys-apps/util-linux |
66 |
+ x11-libs/cairo |
67 |
+ x11-libs/gdk-pixbuf:2 |
68 |
+ x11-libs/gtk+:3 |
69 |
+ x11-libs/libX11 |
70 |
+ x11-libs/libXScrnSaver |
71 |
+ x11-libs/libxcb |
72 |
+ x11-libs/libXcomposite |
73 |
+ x11-libs/libXcursor |
74 |
+ x11-libs/libXdamage |
75 |
+ x11-libs/libXext |
76 |
+ x11-libs/libXfixes |
77 |
+ x11-libs/libXi |
78 |
+ x11-libs/libXrandr |
79 |
+ x11-libs/libXrender |
80 |
+ x11-libs/libXtst |
81 |
+ x11-libs/pango |
82 |
+" |
83 |
+ |
84 |
+S="${WORKDIR}" |
85 |
+ |
86 |
+QA_PREBUILT=" |
87 |
+ opt/discord-ptb/${MY_BIN} |
88 |
+ opt/discord-ptb/chrome-sandbox |
89 |
+ opt/discord-ptb/libffmpeg.so |
90 |
+ opt/discord-ptb/libvk_swiftshader.so |
91 |
+ opt/discord-ptb/libvulkan.so |
92 |
+ opt/discord-ptb/libEGL.so |
93 |
+ opt/discord-ptb/libGLESv2.so |
94 |
+ opt/discord-ptb/libVkICD_mock_icd.so |
95 |
+ opt/discord-ptb/swiftshader/libEGL.so |
96 |
+ opt/discord-ptb/swiftshader/libGLESv2.so |
97 |
+ opt/discord-ptb/swiftshader/libvk_swiftshader.so |
98 |
+" |
99 |
+ |
100 |
+CONFIG_CHECK="~USER_NS" |
101 |
+ |
102 |
+src_prepare() { |
103 |
+ default |
104 |
+ |
105 |
+ sed -i \ |
106 |
+ -e "s:/usr/share/${MY_PN}/${MY_BIN}:/opt/${MY_PN}/${MY_BIN}:g" \ |
107 |
+ usr/share/${MY_PN}/${MY_PN}.desktop || die |
108 |
+} |
109 |
+ |
110 |
+src_install() { |
111 |
+ newicon usr/share/${MY_PN}/${MY_PN//-ptb}.png ${MY_PN}.png |
112 |
+ domenu usr/share/${MY_PN}/${MY_PN}.desktop |
113 |
+ |
114 |
+ insinto /opt/${MY_PN} |
115 |
+ doins -r usr/share/${MY_PN}/. |
116 |
+ fperms +x /opt/${MY_PN}/${MY_BIN} |
117 |
+ dosym ../../opt/${MY_PN}/${MY_BIN} usr/bin/${MY_PN} |
118 |
+ |
119 |
+ pax-mark -m "${ED}"/opt/${MY_PN}/${MY_PN} |
120 |
+} |
121 |
|
122 |
diff --git a/net-im/discord-ptb-bin/metadata.xml b/net-im/discord-ptb-bin/metadata.xml |
123 |
new file mode 100644 |
124 |
index 000000000..545efb0b3 |
125 |
--- /dev/null |
126 |
+++ b/net-im/discord-ptb-bin/metadata.xml |
127 |
@@ -0,0 +1,8 @@ |
128 |
+<?xml version="1.0" encoding="UTF-8"?> |
129 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
130 |
+<pkgmetadata> |
131 |
+ <maintainer type="person"> |
132 |
+ <email>dev@××××.me</email> |
133 |
+ <name>Matthew Bakhtiari</name> |
134 |
+ </maintainer> |
135 |
+</pkgmetadata> |