New package: spotify-adblock-linux-1.0

Closes: #14768 [via git-merge-pr]
This commit is contained in:
linarcx 2019-09-27 23:04:58 +03:30 committed by Piraty
parent 45568013ed
commit 3a5299491c
2 changed files with 31 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,20 @@
# Template file for 'spotify-adblock-linux'
pkgname=spotify-adblock-linux
version=1.0
revision=1
build_style=gnu-makefile
makedepends="libcurl-devel"
short_desc="Spotify adblocker for Linux"
maintainer="linarcx <linarcx@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/abba23/spotify-adblock-linux"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=811358fd2da2ca83e76e3a0dd5ce03ddab39fc19ae9831dd0ccaf4b74abd0804
CFLAGS+=" -shared -fPIC"
do_install() {
vmkdir usr/lib
vcopy "*.so" usr/lib
vinstall ${FILESDIR}/spotify-adblock.desktop 644 usr/share/applications/
}