From 8e298dcec4cc851bfb1c0e32c933669c0d0347f0 Mon Sep 17 00:00:00 2001 From: Subhaditya Nath Date: Sat, 26 Mar 2022 21:18:06 +0530 Subject: [PATCH] New package: spotify-adblock-1.0.1 --- srcpkgs/spotify-adblock/template | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 srcpkgs/spotify-adblock/template diff --git a/srcpkgs/spotify-adblock/template b/srcpkgs/spotify-adblock/template new file mode 100644 index 000000000000..8d64a84df72f --- /dev/null +++ b/srcpkgs/spotify-adblock/template @@ -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 " +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 '/Debian/q' + sed -n '/^```$/q' + sed -n '/^```$/q;s-/usr/local/lib/-/usr/lib/-;p' + } 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 +}