1 |
commit: fedf081ff377a76016158abd37b9605f28638174 |
2 |
Author: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue May 3 17:02:55 2022 +0000 |
4 |
Commit: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com> |
5 |
CommitDate: Tue May 3 17:02:55 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fedf081f |
7 |
|
8 |
media-sound/spotify-adblock: add 1.0.2 |
9 |
|
10 |
Signed-off-by: Nicola Smaniotto <smaniotto.nicola <AT> gmail.com> |
11 |
|
12 |
media-sound/spotify-adblock/Manifest | 1 + |
13 |
.../spotify-adblock/spotify-adblock-1.0.2.ebuild | 67 ++++++++++++++++++++++ |
14 |
2 files changed, 68 insertions(+) |
15 |
|
16 |
diff --git a/media-sound/spotify-adblock/Manifest b/media-sound/spotify-adblock/Manifest |
17 |
index 07c419154..b6b46182c 100644 |
18 |
--- a/media-sound/spotify-adblock/Manifest |
19 |
+++ b/media-sound/spotify-adblock/Manifest |
20 |
@@ -9,6 +9,7 @@ DIST regex-syntax-0.6.25.crate 293293 BLAKE2B d5ca0dbc26b03c6a1818026f9a69cd226e |
21 |
DIST serde-1.0.136.crate 76158 BLAKE2B 44603c8eede428dce4211350497a443385ff0ddb0b43799170411110fd8908a56e9df801c72695723f4fcff5eb33384bcf92ef58eecb9c4924d5d9cc30e2f6c9 SHA512 d043ccfd6a1dc9a114a1a95530a63ed9342688d31d3aadeec600a9a9d47aad328be35b6f80080400ea4bb3f820ddd18cc5ce1e6ea1db28e02752962061e71019 |
22 |
DIST serde_derive-1.0.136.crate 54776 BLAKE2B 687524001bf61c42266d91a7263661ab80aa9556e570975a39bdf56a5cb1a2ec3ad1baf22dff586c7ad4ff66d035555d0a9d4a431c49402dcad6d79d0ef40cee SHA512 92c99455a5a9ac0fe45eb6ff1ad3ea55db860031fb912ace3755d1d2aad0dd880b2d83add4d41872823bd60557ebe1cb36e898bf0ac975b1093caa9819f7c289 |
23 |
DIST spotify-adblock-1.0.1.tar.gz 31427 BLAKE2B e097b0eebe95d91a5412c0a26cc19e955d482f8416feddf41fc0fd9aca8e1fd5f912b1a99a436fa1ab769bb743610b08cdfb71975090dff128a20d356d01105c SHA512 863f4c1cbaa1d9e8c0c7e602e13ded6ee62c5583f6b1bca9cc9196f93331cebd4fb3fe894c64d9ac14c27307ce2f655d4af0c7358da70922875e9a4be32648a9 |
24 |
+DIST spotify-adblock-1.0.2.tar.gz 32372 BLAKE2B 5247d1746a30805d218fc183d75adb249f6517b0dace9460b7be18fe63b6209bb49c0084973f1d28452901dedb839eba7e3e427d758dc78139e9aa4ed8a46009 SHA512 c36c137e675c8890cf669d68cbd68b1cc9b5f6722eeabc598a67fe1bb293dd8af00ed4293f63ef30c380bd3734b8aed01b3ffe726f92806d1a0c31cb689163be |
25 |
DIST syn-1.0.86.crate 235126 BLAKE2B 89973130279128cab73443ee36c8e0d7bc83364ef91d0f086a40c136e26e612428b867a54a1da8ee5b1778cedeafc7403180bd84df2c21017ad5bb76bc0c9138 SHA512 1462dc9fbf0a89b023421064908c7e349ede23c986eddcb8d260559b5e1346fe0206c88e5317eea7e8293ea58b94466d486fae3aa57a1dee4220f5431b1fb68a |
26 |
DIST toml-0.5.8.crate 54219 BLAKE2B b4f9f563e5ba4574d4f2dcbe244378a2e1e984bd9fbbbfa5a06bdd5f8b8d677394f0db9cb8696f6936c80a52caa86b1b3ebaf3885c53855af23f03d318785f19 SHA512 26b7901ee4b7cbb4cf8ea57d365a99ed05e0a76e73452e47d4bcb3b4eeb7bbd393c13eea9ea33dc13622942efcda39acdba9425b74b40c920c9f19673a1f2082 |
27 |
DIST unicode-xid-0.2.2.crate 14955 BLAKE2B 6c6da49ac08dbd8b3248272224d6bff96b9cd1f36029b1937a58a0b929c3a48326053305ed49e73edd70f572f5abbc4817cedc899c69e3457805ad056669f6af SHA512 92ffd0dd34e3ca235ecf110b38c447d3ec1faa23d76c112457f28d432f92fa6b5f428bc5e1bfd278f361f55426dd96e19ecb0d3eff6cf250892f069c52bd89a8 |
28 |
|
29 |
diff --git a/media-sound/spotify-adblock/spotify-adblock-1.0.2.ebuild b/media-sound/spotify-adblock/spotify-adblock-1.0.2.ebuild |
30 |
new file mode 100644 |
31 |
index 000000000..017a35ea2 |
32 |
--- /dev/null |
33 |
+++ b/media-sound/spotify-adblock/spotify-adblock-1.0.2.ebuild |
34 |
@@ -0,0 +1,67 @@ |
35 |
+# Copyright 2022 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+# Auto-Generated by cargo-ebuild 0.5.1 |
39 |
+ |
40 |
+EAPI=8 |
41 |
+ |
42 |
+CRATES=" |
43 |
+ aho-corasick-0.7.18 |
44 |
+ lazy_static-1.4.0 |
45 |
+ libc-0.2.119 |
46 |
+ memchr-2.4.1 |
47 |
+ proc-macro2-1.0.36 |
48 |
+ quote-1.0.15 |
49 |
+ regex-1.5.4 |
50 |
+ regex-syntax-0.6.25 |
51 |
+ serde-1.0.136 |
52 |
+ serde_derive-1.0.136 |
53 |
+ syn-1.0.86 |
54 |
+ toml-0.5.8 |
55 |
+ unicode-xid-0.2.2 |
56 |
+" |
57 |
+ |
58 |
+inherit cargo |
59 |
+ |
60 |
+DESCRIPTION="Adblocker for Spotify" |
61 |
+HOMEPAGE="https://github.com/abba23/spotify-adblock/" |
62 |
+SRC_URI=" |
63 |
+ https://github.com/abba23/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz |
64 |
+ $(cargo_crate_uris) |
65 |
+" |
66 |
+LICENSE=" |
67 |
+ GPL-3 |
68 |
+ || ( Apache-2.0 MIT ) |
69 |
+ || ( MIT Unlicense ) |
70 |
+" |
71 |
+SLOT="0" |
72 |
+KEYWORDS="~amd64" |
73 |
+ |
74 |
+RDEPEND=" |
75 |
+ media-sound/spotify |
76 |
+" |
77 |
+ |
78 |
+src_prepare(){ |
79 |
+ default |
80 |
+ # assigned here to use get_libdir |
81 |
+ QA_FLAGS_IGNORED="usr/$(get_libdir)/${PN}.so" |
82 |
+} |
83 |
+ |
84 |
+src_install(){ |
85 |
+ # executable |
86 |
+ SPOTIFY_HOME=/opt/spotify/spotify-client |
87 |
+ cat <<-EOF > "${T}/spotify-adblock" || die |
88 |
+ #! /bin/sh |
89 |
+ LD_LIBRARY_PATH="${SPOTIFY_HOME}" \\ |
90 |
+ LD_PRELOAD=/usr/$(get_libdir)/spotify-adblock.so \\ |
91 |
+ exec ${SPOTIFY_HOME}/spotify "\$@" |
92 |
+ EOF |
93 |
+ dobin "${T}/spotify-adblock" |
94 |
+ |
95 |
+ # library |
96 |
+ newlib.so target/release/libspotifyadblock.so ${PN}.so |
97 |
+ |
98 |
+ # config |
99 |
+ insinto "/etc/${PN}" |
100 |
+ doins config.toml |
101 |
+} |