Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New package: spotify-adblock-1.0.1 #36364

Merged
merged 1 commit into from
Mar 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions srcpkgs/spotify-adblock/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 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

pre_install() {
{ sed -n '/<summary>Debian/q'
sed -n '/^```$/q'
sed -n '/^```$/q;s-/usr/local/lib/-/usr/lib/-;p'
} <README.md >spotify-adblock.desktop
}

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