Fix deadd package

This commit is contained in:
Sravan Balaji 2024-04-27 12:49:13 +00:00
parent dbf9e7ba5c
commit 2e8ca0c441
2 changed files with 23 additions and 4 deletions

View File

@ -0,0 +1 @@
DIST 2.1.1.tar.gz 5536714 BLAKE2B 3e62764808e7cd06f7302176e717d0315e9493a0ac3bb62fbc945fa0884e3eed0d5ec8edd259488a5c442c095d075763438e2f873c2dde28bd3257e94ab08564 SHA512 752f4a31aaa7afc7e75e17c82042625865b67a0cfd65f7e07250539cfd41fb3bfdd9917ab5da614aeb80f7b173ac091997416e3325ec4b9b3bba21bf2d877cda

View File

@ -5,22 +5,40 @@ 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}
S=${WORKDIR}/linux_notification_center-${PV}
IUSE="systemd dbus"
DEPEND="
dev-libs/gobject-introspection
gui-libs/gtk
net-misc/wget
"
pkg_setup() {
cd ${S}
cd ${WORKDIR}
wget https://github.com/phuhl/linux_notification_center/releases/download/${PV}/deadd-notification-center
}
src_install() {
dobin 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"
}