-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
27 lines (25 loc) · 911 Bytes
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Template file for 'spotify-adblock'
pkgname=spotify-adblock
version=1.0.3
revision=1
build_style=cargo
conf_files="/etc/spotify-adblock/config.toml"
short_desc="Adblocker for Spotify"
maintainer="Orphaned <orphan@voidlinux.org>"
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=8141c2433dbb6a6c693e95856c0e2e4b22b5a9da81f70589cd07b9e058d8b3c5
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
}