From a4b9b3311c7036ac14ceab7228cba11621bc1da5 Mon Sep 17 00:00:00 2001 From: Yuyu Date: Tue, 5 Oct 2021 17:34:45 +0200 Subject: [PATCH] New package: spotify-adblock-1.0.0 --- .../files/spotify-adblock.desktop | 11 +++++++++++ srcpkgs/spotify-adblock/template | 18 ++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 srcpkgs/spotify-adblock/files/spotify-adblock.desktop create mode 100644 srcpkgs/spotify-adblock/template diff --git a/srcpkgs/spotify-adblock/files/spotify-adblock.desktop b/srcpkgs/spotify-adblock/files/spotify-adblock.desktop new file mode 100644 index 000000000000..7a1f4cffe2fd --- /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_LIBRARY_PATH=/usr/libexec/spotify env LD_PRELOAD=/usr/lib/libspotifyadblock.so /usr/libexec/spotify/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..dd157b5c7241 --- /dev/null +++ b/srcpkgs/spotify-adblock/template @@ -0,0 +1,18 @@ +# Template file for 'spotify-adblock' +pkgname=spotify-adblock +version=1.0.0 +revision=1 +build_style=cargo +conf_files="/etc/spotify-adblock/config.toml" +short_desc="Spotify adblocker for Linux" +maintainer="Yuyu " +license="GPL-3.0-or-later" +homepage="https://github.com/abba23/spotify-adblock" +distfiles="${homepage}/archive/v${version}.tar.gz" +checksum=f1a150f6f31becf7e0de4f993a346285fc3b4669516b63649c128c932c32e7f0 + +do_install() { + vinstall target/${XBPS_RUST_TARGET}/release/libspotifyadblock.so 644 usr/lib + vinstall config.toml 644 etc/spotify-adblock/ + vinstall ${FILESDIR}/spotify-adblock.desktop 644 usr/share/applications/ +}