From caa7ed77ead49332315a54912a8684d1187348f3 Mon Sep 17 00:00:00 2001 From: DragonGhost7 Date: Tue, 12 Jan 2021 21:10:21 -0500 Subject: [PATCH] New package: blockify-3.6.3 --- srcpkgs/blockify/INSTALL.msg | 3 +++ srcpkgs/blockify/files/spotify_blockify | 11 +++++++++++ srcpkgs/blockify/template | 20 ++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 srcpkgs/blockify/INSTALL.msg create mode 100755 srcpkgs/blockify/files/spotify_blockify create mode 100644 srcpkgs/blockify/template diff --git a/srcpkgs/blockify/INSTALL.msg b/srcpkgs/blockify/INSTALL.msg new file mode 100644 index 00000000000..3f72f73f1e3 --- /dev/null +++ b/srcpkgs/blockify/INSTALL.msg @@ -0,0 +1,3 @@ +New script `spotify_blockify` was installed in /usr/bin/ +if you want to rename it to just `spotify`, please move it to +/usr/local/bin, or anywhere before that in your $PATH diff --git a/srcpkgs/blockify/files/spotify_blockify b/srcpkgs/blockify/files/spotify_blockify new file mode 100755 index 00000000000..b1ca0d372bb --- /dev/null +++ b/srcpkgs/blockify/files/spotify_blockify @@ -0,0 +1,11 @@ +#!/bin/bash + +spotify=/usr/bin/spotify + +if [[ -x $spotify && -x /bin/blockify ]] ; +then + blockify & + block_pid=$! + $spotify + trap "kill -9 $block_pid" SIGINT SIGTERM EXIT +fi diff --git a/srcpkgs/blockify/template b/srcpkgs/blockify/template new file mode 100644 index 00000000000..7b74f5cbe0e --- /dev/null +++ b/srcpkgs/blockify/template @@ -0,0 +1,20 @@ +# Template file for 'blockify' +pkgname=blockify +version=3.6.3 +revision=1 +#archs="i686 x86_64" +wrksrc=blockify-master +#create_wrksrc=yes +build_style=python3-module +hostmakedepends="python3 python3-gobject alsa-utils python3-setuptools gtk+3 gst1-python3 python3-dbus python3-docopt" +depends="spotify alsa-utils gtk+3 pulseaudio gstreamer1 python3-docopt wmctrl" +short_desc="Mutes Spotify advertisements" +maintainer="DragonGhost7 " +license="MIT" +homepage="https://github.com/serialoverflow/blockify" +distfiles="https://github.com/serialoverflow/blockify/archive/master.tar.gz" +checksum=7930017fb0e5a2651e8e425a06d46c7aa9ac68ad0c59ba59efb975037786fde6 +post_install() { + vlicense LICENSE.txt + vbin ${FILESDIR}/spotify_blockify +}