Skip to content

Commit

Permalink
New package: spotify-adblock-1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
subnut committed Mar 26, 2022
1 parent a7072a4 commit 5a844f2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
11 changes: 11 additions & 0 deletions srcpkgs/spotify-adblock/files/spotify-adblock.desktop
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions srcpkgs/spotify-adblock/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# 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 <sn03.general@gmail.com>"
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

do_install() {
vinstall config.toml 644 etc/spotify-adblock
vinstall "${FILESDIR}/spotify-adblock.desktop" 644 usr/share/applications
vinstall "target/${RUST_TARGET}/release/libspotifyadblock.so" 644 usr/lib spotify-adblock.so
}

0 comments on commit 5a844f2

Please sign in to comment.