sravan-overlay/x11-misc/deadd-notification-center-bin/deadd-notification-center-bin-2.1.1.ebuild
2024-04-27 12:49:13 +00:00

45 lines
998 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="A notification daemon and center"
HOMEPAGE="https://github.com/phuhl/linux_notification_center"
SRC_URI="https://github.com/phuhl/linux_notification_center/archive/refs/tags/${PV}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64"
S=${WORKDIR}/linux_notification_center-${PV}
IUSE="systemd dbus"
DEPEND="
dev-libs/gobject-introspection
gui-libs/gtk
net-misc/wget
"
pkg_setup() {
cd ${WORKDIR}
wget https://github.com/phuhl/linux_notification_center/releases/download/${PV}/deadd-notification-center
}
src_prepare() {
eapply_user
mkdir -p ${S}/.out
mv ${WORKDIR}/deadd-notification-center ${S}/.out/deadd-notification-center
}
src_compile() {
einfo "Skipping compile step"
}
src_install() {
if use systemd && use dbus ; then
make service || die "make service failed"
fi
make DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install || die "make install failed"
}