Github messages for voidlinux
 help / color / mirror / Atom feed
From: subnut <subnut@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: spotify-adblock-1.0.1
Date: Sat, 26 Mar 2022 17:53:11 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-36364@inbox.vuxu.org> (raw)

[-- 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}"
+}

             reply	other threads:[~2022-03-26 16:53 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-26 16:53 subnut [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-36364@inbox.vuxu.org \
    --to=subnut@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).