package/swaybg: new package

Provides the `swaybg` utility, which is commonly used with `sway` to
manage background images/color configuration for the compositor.

Signed-off-by: James Knight <james.d.knight@live.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
master
James Knight 2023-04-20 21:42:34 -04:00 committed by Thomas Petazzoni
parent e434d8a29f
commit 135bc0b079
5 changed files with 46 additions and 0 deletions

View File

@ -1465,6 +1465,7 @@ F: package/gtkmm3/
F: package/libpqxx/
F: package/pangomm/
F: package/rpm/
F: package/swaybg/
F: package/yad/
N: Jan Heylen <jan.heylen@nokia.com>

View File

@ -329,6 +329,7 @@ comment "Graphic applications"
source "package/rrdtool/Config.in"
source "package/stellarium/Config.in"
source "package/sway/Config.in"
source "package/swaybg/Config.in"
source "package/tesseract-ocr/Config.in"
source "package/tinifier/Config.in"

View File

@ -0,0 +1,13 @@
config BR2_PACKAGE_SWAYBG
bool "swaybg"
default y if BR2_PACKAGE_SWAY
depends on !BR2_STATIC_LIBS # wayland -> dlfcn.h
depends on BR2_TOOLCHAIN_HAS_THREADS # wayland
select BR2_PACKAGE_CAIRO
select BR2_PACKAGE_CAIRO_PNG
select BR2_PACKAGE_WAYLAND
select BR2_PACKAGE_WAYLAND_PROTOCOLS
help
Wallpaper tool for Wayland compositors.
https://github.com/swaywm/swaybg

View File

@ -0,0 +1,3 @@
# Locally computed, tarball verified with GPG signature
sha256 c0205b34f1fad94553b6cb2c2b983cc33186018026058cad0b841a00bc3087e3 swaybg-1.2.0.tar.gz
sha256 95224d118a325daf31828afcca98cd958d53f0a7cdd856b50b1be8ac44832faf LICENSE

View File

@ -0,0 +1,28 @@
################################################################################
#
# swaybg
#
################################################################################
SWAYBG_VERSION = 1.2.0
SWAYBG_SITE = https://github.com/swaywm/swaybg/releases/download/v$(SWAYBG_VERSION)
SWAYBG_LICENSE = MIT
SWAYBG_LICENSE_FILES = LICENSE
SWAYBG_DEPENDENCIES = \
cairo \
wayland \
wayland-protocols
SWAYBG_CONF_OPTS = \
-Dman-pages=disabled \
-Dwerror=false
ifeq ($(BR2_PACKAGE_GDK_PIXBUF),y)
SWAYBG_CONF_OPTS += -Dgdk-pixbuf=enabled
SWAYBG_DEPENDENCIES += gdk-pixbuf
else
SWAYBG_CONF_OPTS += -Dgdk-pixbuf=disabled
endif
$(eval $(meson-package))