From 29480620e6e436959f303e08606a855b76aef686 Mon Sep 17 00:00:00 2001 From: Subhaditya Nath 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 | 30 +++++++++++++++++++ 3 files changed, 42 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..82908c0f46c5 --- /dev/null +++ b/srcpkgs/spotify-adblock/template @@ -0,0 +1,30 @@ +# Template file for 'spotify-adblock' +pkgname=spotify-adblock +version=1.0.1 +revision=1 +build_style=cargo +conf_files="/etc/spotify-adblock/config.toml" +short_desc="Adblocker for Spotify" +maintainer="Subhaditya Nath " +license="GPL-3.0-or-later" +homepage="https://github.com/abba23/spotify-adblock" +distfiles="https://github.com/abba23/spotify-adblock/archive/refs/tags/v${version}.tar.gz" +checksum=01edec4cc87fd0bbf77508fe6bcfdfba244771a992eca9d834df0f9399f1c360 + +if [ "$CROSS_BUILD" ]; then + _releasedir="target/${RUST_TARGET}/release" +else + _releasedir="target/release" +fi + +do_install() { + vinstall config.toml 644 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}" +}