From 22e17d1e9d76707378271ddc1ecbb92f0ea2854e Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Sat, 30 Nov 2024 18:29:49 -0500 Subject: [PATCH] Minor Cleanup of spicetify-cli-bin and notify-send-py - Use env in shebang for notify-send.py - Move spicetify script to a file --- app-misc/spicetify-cli-bin/files/spicetify | 2 ++ app-misc/spicetify-cli-bin/spicetify-cli-bin-2.38.5.ebuild | 5 +---- dev-python/notify-send-py/files/notify-send.py | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) create mode 100644 app-misc/spicetify-cli-bin/files/spicetify diff --git a/app-misc/spicetify-cli-bin/files/spicetify b/app-misc/spicetify-cli-bin/files/spicetify new file mode 100644 index 0000000..5048f19 --- /dev/null +++ b/app-misc/spicetify-cli-bin/files/spicetify @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +exec /opt/spicetify-cli/spicetify "$@" diff --git a/app-misc/spicetify-cli-bin/spicetify-cli-bin-2.38.5.ebuild b/app-misc/spicetify-cli-bin/spicetify-cli-bin-2.38.5.ebuild index d4efda5..4fbd0e0 100644 --- a/app-misc/spicetify-cli-bin/spicetify-cli-bin-2.38.5.ebuild +++ b/app-misc/spicetify-cli-bin/spicetify-cli-bin-2.38.5.ebuild @@ -35,10 +35,7 @@ RDEPEND=" src_install() { insinto "${INSTALLDIR}" doins -r {css-map.json,CustomApps,Extensions,globals.d.ts,jsHelper,Themes,spicetify} - newbin - spicetify <<-EOF - #!/usr/bin/env sh - exec /opt/spicetify-cli/spicetify \$@ - EOF + dobin ${FILESDIR}/spicetify fperms +x "${INSTALLDIR}/spicetify" } diff --git a/dev-python/notify-send-py/files/notify-send.py b/dev-python/notify-send-py/files/notify-send.py index 4cf2ba1..0f90ba8 100644 --- a/dev-python/notify-send-py/files/notify-send.py +++ b/dev-python/notify-send-py/files/notify-send.py @@ -1,3 +1,2 @@ -#!/bin/sh +#!/usr/bin/env sh exec python3 -m notify_send_py.notify_send_py "$@" -