Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/wazzapp-bin/
Date: Thu, 19 May 2022 11:04:19
Message-Id: 1652957641.41a91c7281596884c41ed91a0633387212acfe86.andrewammerlaan@gentoo
1 commit: 41a91c7281596884c41ed91a0633387212acfe86
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 19 10:52:05 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Thu May 19 10:54:01 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41a91c72
7
8 net-im/wazzapp-bin: new package, add 0.4.2
9
10 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
11
12 net-im/wazzapp-bin/Manifest | 1 +
13 net-im/wazzapp-bin/metadata.xml | 12 ++++++
14 net-im/wazzapp-bin/wazzapp-bin-0.4.2.ebuild | 59 +++++++++++++++++++++++++++++
15 3 files changed, 72 insertions(+)
16
17 diff --git a/net-im/wazzapp-bin/Manifest b/net-im/wazzapp-bin/Manifest
18 new file mode 100644
19 index 000000000000..e46027a9a1d9
20 --- /dev/null
21 +++ b/net-im/wazzapp-bin/Manifest
22 @@ -0,0 +1 @@
23 +DIST wazzapp-0.4.2.x86_64.rpm 56402809 BLAKE2B 11a6f8db4fe91014218b09992e1e3fa36819eb73efc9081ef56af5e6aa5b0dbee78e8974eca86b28701160eb823ae58350f9da4c6d5c0e1826ee95a7ea413a55 SHA512 808fa3721d62def5d93b4b3411f1f7489d22d5c70af07174b41579263d562bb139e951434a211c36e08e7c672925f89e60eb7fdb1d79148c3adc1a9c7beafad7
24
25 diff --git a/net-im/wazzapp-bin/metadata.xml b/net-im/wazzapp-bin/metadata.xml
26 new file mode 100644
27 index 000000000000..2b6f2305c1f4
28 --- /dev/null
29 +++ b/net-im/wazzapp-bin/metadata.xml
30 @@ -0,0 +1,12 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <upstream>
35 + <remote-id type="github">diospiroverde/WazzApp</remote-id>
36 + <bugs-to>https://github.com/diospiroverde/WazzApp/issues</bugs-to>
37 + </upstream>
38 + <maintainer type="person">
39 + <email>andrewammerlaan@g.o</email>
40 + <name>Andrew Ammerlaan</name>
41 + </maintainer>
42 +</pkgmetadata>
43
44 diff --git a/net-im/wazzapp-bin/wazzapp-bin-0.4.2.ebuild b/net-im/wazzapp-bin/wazzapp-bin-0.4.2.ebuild
45 new file mode 100644
46 index 000000000000..5ff5b9f8853f
47 --- /dev/null
48 +++ b/net-im/wazzapp-bin/wazzapp-bin-0.4.2.ebuild
49 @@ -0,0 +1,59 @@
50 +# Copyright 2019-2022 Gentoo Authors
51 +# Distributed under the terms of the GNU General Public License v2
52 +
53 +EAPI=8
54 +
55 +inherit rpm xdg
56 +
57 +DESCRIPTION="Unofficial electron-based wrapper around WhatsApp Web"
58 +HOMEPAGE="https://github.com/diospiroverde/WazzApp"
59 +SRC_URI="https://lx-dynamics.com/wazzapp-${PV}.x86_64.rpm"
60 +S="${WORKDIR}"
61 +
62 +KEYWORDS="-* ~amd64"
63 +# Electron bundles a bunch of things
64 +LICENSE="
65 + MIT BSD BSD-2 BSD-4 AFL-2.1 Apache-2.0 Ms-PL GPL-2 LGPL-2.1 APSL-2
66 + unRAR OFL CC-BY-SA-3.0 MPL-2.0 android public-domain all-rights-reserved
67 +"
68 +SLOT="0"
69 +
70 +RDEPEND="
71 + app-accessibility/at-spi2-atk
72 + app-accessibility/at-spi2-core
73 + dev-libs/atk
74 + dev-libs/expat
75 + dev-libs/glib
76 + dev-libs/nspr
77 + dev-libs/nss
78 + media-libs/alsa-lib
79 + media-libs/mesa
80 + net-print/cups
81 + sys-apps/dbus
82 + sys-libs/glibc
83 + x11-libs/cairo
84 + x11-libs/gdk-pixbuf
85 + x11-libs/gtk+:3
86 + x11-libs/libdrm
87 + x11-libs/libX11
88 + x11-libs/libxcb
89 + x11-libs/libXcomposite
90 + x11-libs/libXdamage
91 + x11-libs/libXext
92 + x11-libs/libXfixes
93 + x11-libs/libxkbcommon
94 + x11-libs/libXrandr
95 + x11-libs/pango
96 +"
97 +
98 +QA_PREBUILT="opt/wazzapp/*"
99 +
100 +src_prepare() {
101 + default
102 + # Fix desktop file to pass validation
103 + sed -i -e '/MimeType=whatsapp/d' usr/share/applications/wazzapp.desktop || die
104 +}
105 +
106 +src_install() {
107 + mv "${S}"/* "${ED}" || die
108 +}