Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: spotify-adblock-1.0.1
@ 2022-03-26 16:53 subnut
  2022-03-26 16:54 ` subnut
                   ` (34 more replies)
  0 siblings, 35 replies; 36+ messages in thread
From: subnut @ 2022-03-26 16:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1245 bytes --]

There is a new pull request by subnut against master on the void-packages repository

https://github.com/subnut/void-packages spotify-adblock
https://github.com/void-linux/void-packages/pull/36364

New package: spotify-adblock-1.0.1
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl (crossbuild)
<!-- 
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/36364.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-spotify-adblock-36364.patch --]
[-- Type: text/x-diff, Size: 2682 bytes --]

From 543e08e0b99ddbc178dd7275f8e22c63a9143bc2 Mon Sep 17 00:00:00 2001
From: Subhaditya Nath <sn03.general@gmail.com>
Date: Sat, 26 Mar 2022 21:18:06 +0530
Subject: [PATCH] New package: spotify-adblock-1.0.1

---
 srcpkgs/spotify-adblock-linux                 |  1 +
 .../files/spotify-adblock.desktop             | 11 ++++++
 srcpkgs/spotify-adblock/template              | 34 +++++++++++++++++++
 3 files changed, 46 insertions(+)
 create mode 120000 srcpkgs/spotify-adblock-linux
 create mode 100644 srcpkgs/spotify-adblock/files/spotify-adblock.desktop
 create mode 100644 srcpkgs/spotify-adblock/template

diff --git a/srcpkgs/spotify-adblock-linux b/srcpkgs/spotify-adblock-linux
new file mode 120000
index 000000000000..a57461b41ff6
--- /dev/null
+++ b/srcpkgs/spotify-adblock-linux
@@ -0,0 +1 @@
+spotify-adblock
\ No newline at end of file
diff --git a/srcpkgs/spotify-adblock/files/spotify-adblock.desktop b/srcpkgs/spotify-adblock/files/spotify-adblock.desktop
new file mode 100644
index 000000000000..074ba5775a5b
--- /dev/null
+++ b/srcpkgs/spotify-adblock/files/spotify-adblock.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Name=Spotify (adblock)
+GenericName=Music Player
+Icon=spotify-client
+TryExec=spotify
+Exec=env LD_PRELOAD=/usr/lib/spotify-adblock.so spotify %U
+Terminal=false
+MimeType=x-scheme-handler/spotify;
+Categories=Audio;Music;Player;AudioVideo;
+StartupWMClass=spotify
diff --git a/srcpkgs/spotify-adblock/template b/srcpkgs/spotify-adblock/template
new file mode 100644
index 000000000000..b36d40d933e8
--- /dev/null
+++ b/srcpkgs/spotify-adblock/template
@@ -0,0 +1,34 @@
+# Template file for 'spotify-adblock'
+pkgname=spotify-adblock
+version=1.0.1
+revision=1
+build_style=gnu-makefile
+build_helper=rust
+conf_files="/etc/spotify-adblock/config.toml"
+hostmakedepends="make cargo"
+makedepends="rust-std"
+short_desc="Adblocker for Spotify"
+maintainer="Subhaditya Nath <sn03.general@gmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/abba23/spotify-adblock"
+distfiles="${homepage}/archive/v${version}.tar.gz"
+checksum=01edec4cc87fd0bbf77508fe6bcfdfba244771a992eca9d834df0f9399f1c360
+
+if [ "$CROSS_BUILD" ]; then
+	_releasedir="target/${RUST_TARGET}/release"
+else
+	_releasedir="target/release"
+fi
+
+do_install() {
+	vmkdir etc/spotify-adblock
+	vcopy config.toml etc/spotify-adblock
+	vinstall "${FILESDIR}/spotify-adblock.desktop" 644 usr/share/applications
+	vinstall "${_releasedir}/libspotifyadblock.so" 644 usr/lib spotify-adblock.so
+}
+
+spotify-adblock-linux_package() {
+	build_style=meta
+	short_desc+=" (transitional dummy package)"
+	depends="spotify-adblock>=${version}_${revision}"
+}

^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2022-03-28  2:43 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-26 16:53 [PR PATCH] New package: spotify-adblock-1.0.1 subnut
2022-03-26 16:54 ` subnut
2022-03-26 16:59 ` subnut
2022-03-26 17:46 ` [PR REVIEW] " classabbyamp
2022-03-26 17:46 ` classabbyamp
2022-03-26 17:46 ` classabbyamp
2022-03-26 17:46 ` classabbyamp
2022-03-26 17:46 ` classabbyamp
2022-03-26 17:46 ` classabbyamp
2022-03-26 17:46 ` classabbyamp
2022-03-26 17:46 ` subnut
2022-03-26 17:47 ` classabbyamp
2022-03-26 17:48 ` subnut
2022-03-26 17:48 ` subnut
2022-03-26 17:50 ` classabbyamp
2022-03-26 17:50 ` classabbyamp
2022-03-26 17:55 ` classabbyamp
2022-03-26 18:05 ` [PR PATCH] [Updated] " subnut
2022-03-26 18:07 ` [PR REVIEW] " classabbyamp
2022-03-26 18:08 ` subnut
2022-03-26 18:11 ` subnut
2022-03-26 18:15 ` classabbyamp
2022-03-26 18:18 ` subnut
2022-03-26 18:19 ` [PR PATCH] [Updated] " subnut
2022-03-26 18:36 ` [PR REVIEW] " tibequadorian
2022-03-26 18:39 ` tibequadorian
2022-03-26 18:39 ` subnut
2022-03-26 18:39 ` tibequadorian
2022-03-26 18:40 ` tibequadorian
2022-03-26 18:44 ` [PR PATCH] [Updated] " subnut
2022-03-26 18:44 ` [PR REVIEW] " subnut
2022-03-27 18:13 ` Vaelatern
2022-03-27 18:51 ` subnut
2022-03-27 18:58 ` subnut
2022-03-28  2:24 ` [PR PATCH] [Updated] " subnut
2022-03-28  2:43 ` [PR PATCH] [Merged]: " Vaelatern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).