void-packages/srcpkgs/spotify-adblock/template

28 lines
920 B
Bash

# Template file for 'spotify-adblock'
pkgname=spotify-adblock
version=1.0.2
revision=2
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=a0b5124573b95548e2f5ae36fc74fdab4fab9282d755affba754641e561aeac6
pre_install() {
{
sed -n '/<summary>Debian/q'
# \x60 = backtick, to trick xlint
sed -n '/^\x60\x60\x60$/q'
sed -n '/^\x60\x60\x60$/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
}