New package:dunst (#10275)

This commit is contained in:
NoNameMan1231 2022-04-26 05:39:12 +08:00 committed by GitHub
parent 4798011417
commit 3e123608f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,9 @@
TERMUX_PKG_HOMEPAGE=https://dunst-project.org/
TERMUX_PKG_DESCRIPTION="Lightweight and customizable notification daemon"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.8.1
TERMUX_PKG_SRCURL=https://github.com/dunst-project/dunst/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=90325a4004626ce516ac7b5b0ed1aaab11c5315385d31f781d6f26064601c3a1
TERMUX_PKG_DEPENDS="dbus, libxinerama, libxrandr, libxss, glib, pango, libcairo, libnotify"
TERMUX_PKG_BUILD_IN_SRC=true

View File

@ -0,0 +1,34 @@
diff -Naur dunst-1.8.1/config.mk dunst-1.8.1.mod/config.mk
--- dunst-1.8.1/config.mk 2022-03-02 18:55:25.000000000 +0800
+++ dunst-1.8.1.mod/config.mk 2022-04-24 22:04:03.598737233 +0800
@@ -1,5 +1,5 @@
# paths
-PREFIX ?= /usr/local
+PREFIX ?= @TERMUX_PREFIX@/local
BINDIR ?= ${PREFIX}/bin
SYSCONFDIR ?= ${PREFIX}/etc/xdg
SYSCONFFILE ?= ${SYSCONFDIR}/dunst/dunstrc
@@ -23,12 +23,12 @@
# Disable systemd service file installation,
# if you don't want to use systemd albeit installed
-#SYSTEMD ?= 0
+SYSTEMD ?= 0
# Disable dependency on wayland. This will force dunst to use
# xwayland on wayland compositors
# You can also use "make WAYLAND=0" to build without wayland
-# WAYLAND ?= 0
+WAYLAND ?= 0
ifneq (0, ${WAYLAND})
ENABLE_WAYLAND= -DENABLE_WAYLAND
@@ -37,7 +37,7 @@
# flags
DEFAULT_CPPFLAGS = -Wno-gnu-zero-variadic-macro-arguments -D_DEFAULT_SOURCE -DVERSION=\"${VERSION}\" -DSYSCONFDIR=\"${SYSCONFDIR}\"
DEFAULT_CFLAGS = -g -std=gnu99 -pedantic -Wall -Wno-overlength-strings -Os ${ENABLE_WAYLAND} ${EXTRA_CFLAGS}
-DEFAULT_LDFLAGS = -lm -lrt
+DEFAULT_LDFLAGS = -lm
CPPFLAGS_DEBUG := -DDEBUG_BUILD
CFLAGS_DEBUG := -O0