diff --git a/contrib/dunst/files/dunst.user b/contrib/dunst/files/dunst.user new file mode 100644 index 00000000000..7ef2c6e366a --- /dev/null +++ b/contrib/dunst/files/dunst.user @@ -0,0 +1,7 @@ +# dunst user service + +type = process +command = /usr/bin/dunst +depends-on = dbus +log-type = buffer +restart = true diff --git a/contrib/dunst/patches/install-target.patch b/contrib/dunst/patches/install-target.patch new file mode 100644 index 00000000000..1c02821c491 --- /dev/null +++ b/contrib/dunst/patches/install-target.patch @@ -0,0 +1,60 @@ +diff --git a/Makefile b/Makefile +index 1b1b284..4408d1f 100644 +--- a/Makefile ++++ b/Makefile +@@ -207,21 +207,27 @@ clean-wayland-protocols: + install: install-dunst install-dunstctl install-dunstrc install-service + + install-dunst: dunst doc ++ install -d ${DESTDIR}${BINDIR} + install -Dm755 dunst ${DESTDIR}${BINDIR}/dunst ++ install -d ${DESTDIR}${MANPREFIX}/man1 ++ install -d ${DESTDIR}${MANPREFIX}/man5 + install -Dm644 docs/dunst.1 ${DESTDIR}${MANPREFIX}/man1/dunst.1 + install -Dm644 docs/dunst.5 ${DESTDIR}${MANPREFIX}/man5/dunst.5 + install -Dm644 docs/dunstctl.1 ${DESTDIR}${MANPREFIX}/man1/dunstctl.1 + + install-dunstctl: dunstctl ++ install -d ${DESTDIR}${BINDIR} + install -Dm755 dunstctl ${DESTDIR}${BINDIR}/dunstctl + + ifeq (1,${SYSCONF_FORCE_NEW}) + install-dunstrc: ++ install -d ${DESTDIR}${SYSCONFDIR}/dunst + install -Dm644 dunstrc ${DESTDIR}${SYSCONFFILE} + endif + + install-service: install-service-dbus + install-service-dbus: service-dbus ++ install -d ${DESTDIR}${SERVICEDIR_DBUS} + install -Dm644 org.knopwob.dunst.service ${DESTDIR}${SERVICEDIR_DBUS}/org.knopwob.dunst.service + ifneq (0,${SYSTEMD}) + install-service: install-service-systemd +@@ -232,22 +238,27 @@ endif + ifneq (0,${DUNSTIFY}) + install: install-dunstify + install-dunstify: dunstify ++ install -d ${DESTDIR}${BINDIR} + install -Dm755 dunstify ${DESTDIR}${BINDIR}/dunstify + endif + + ifneq (0,${COMPLETIONS}) + install: install-completions + install-completions: ++ install -d ${DESTDIR}${BASHCOMPLETIONDIR} + install -Dm644 completions/dunst.bashcomp ${DESTDIR}${BASHCOMPLETIONDIR}/dunst + install -Dm644 completions/dunstctl.bashcomp ${DESTDIR}${BASHCOMPLETIONDIR}/dunstctl ++ install -d ${DESTDIR}${ZSHCOMPLETIONDIR} + install -Dm644 completions/_dunst.zshcomp ${DESTDIR}${ZSHCOMPLETIONDIR}/_dunst + install -Dm644 completions/_dunstctl.zshcomp ${DESTDIR}${ZSHCOMPLETIONDIR}/_dunstctl ++ install -d ${DESTDIR}${FISHCOMPLETIONDIR} + install -Dm644 completions/dunst.fishcomp ${DESTDIR}${FISHCOMPLETIONDIR}/dunst + install -Dm644 completions/dunstctl.fishcomp ${DESTDIR}${FISHCOMPLETIONDIR}/dunstctl + + ifneq (0,${DUNSTIFY}) + install: install-completions-dunstify + install-completions-dunstify: ++ install -d ${DESTDIR}${FISHCOMPLETIONDIR} + install -Dm644 completions/dunstify.fishcomp ${DESTDIR}${FISHCOMPLETIONDIR}/dunstify + endif + endif diff --git a/contrib/dunst/template.py b/contrib/dunst/template.py new file mode 100644 index 00000000000..0899f924a4b --- /dev/null +++ b/contrib/dunst/template.py @@ -0,0 +1,37 @@ +pkgname = "dunst" +pkgver = "1.11.0" +pkgrel = 0 +build_style = "makefile" +make_cmd = "gmake" +make_check_target = "test" +make_use_env = True +hostmakedepends = ["gmake", "perl", "pkgconf", "wayland-progs"] +makedepends = [ + "cairo-devel", + "dbus-devel", + "glib-devel", + "libnotify-devel", + "linux-headers", + "libxinerama-devel", + "libxrandr-devel", + "libxscrnsaver-devel", + "pango-devel", + "wayland-devel", + "wayland-protocols", +] +checkdepends = ["bash", "dbus"] +pkgdesc = "Notification daemon" +maintainer = "ttyyls " +license = "BSD-3-Clause" +url = "https://dunst-project.org" +source = ( + f"https://github.com/dunst-project/dunst/archive/refs/tags/v{pkgver}.tar.gz" +) +sha256 = "31c0eb749ca83dab7f5af33beb951c9f9a8451263fcee6cbcf8ba3dedbf2e1f1" +env = {"SYSCONFDIR": "/etc"} +hardening = ["vis", "cfi"] + + +def post_install(self): + self.install_license("LICENSE") + self.install_service(self.files_path / "dunst.user")