From a43f3242070a705adb07fa6e46eba1efe395aa5d Mon Sep 17 00:00:00 2001 From: ttyyls Date: Tue, 19 Mar 2024 10:44:45 +0000 Subject: [PATCH] contrib/dunst: new package (1.11.0) --- contrib/dunst/patches/install-target.patch | 60 ++++++++++++++++++++++ contrib/dunst/template.py | 37 +++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 contrib/dunst/patches/install-target.patch create mode 100644 contrib/dunst/template.py 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..57fcae38a79 --- /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_dir = "." +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")