Skip to content

Commit

Permalink
contrib/dunst: new package (1.11.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttyyls committed Apr 29, 2024
1 parent 7d19102 commit a43f324
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 0 deletions.
60 changes: 60 additions & 0 deletions contrib/dunst/patches/install-target.patch
Original file line number Diff line number Diff line change
@@ -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
37 changes: 37 additions & 0 deletions contrib/dunst/template.py
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"
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")

0 comments on commit a43f324

Please sign in to comment.