Attempt to fix notify-send-py package

This commit is contained in:
Sravan Balaji
2024-04-30 20:34:41 -04:00
parent a5ce90c569
commit 16b89d9423
2 changed files with 12 additions and 10 deletions

View File

@ -0,0 +1,3 @@
#!/bin/sh
exec python3 -m notify_send_py.notify_send_py "$@"

View File

@ -12,21 +12,20 @@ SRC_URI="https://files.pythonhosted.org/packages/f7/44/edf5578a7e3d79e30505286da
S="${WORKDIR}"/notify-send.py-${PV}
LICENSE="GPL-3"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64"
DEPEND="
sys-apps/sed
dev-python/setuptools[${PYTHON_USEDEP}]
"
RDEPEND="
dev-python/notify2
dev-python/dbus-python
dev-python/pygobject
"
src_prepare() {
eapply_user
sed -i -e 's/from .notify3 import notify3/import notify3.notify3/g' ${S}/notify_send_py/notify_send_py.py || die "Failed to fix module import in script"
mv ${S}/notify_send_py/notify_send_py.py ${S}/notify_send_py/notify-send.py
}
src_install() {
distutils-r1_src_install
python_install() {
distutils-r1_python_install
dobin "${FILESDIR}"/notify-send.py
}