Initial Commit
- initial default booting image
This commit is contained in:
71
package/sway/Config.in
Normal file
71
package/sway/Config.in
Normal file
@@ -0,0 +1,71 @@
|
||||
config BR2_PACKAGE_SWAY
|
||||
bool "sway"
|
||||
depends on BR2_PACKAGE_SYSTEMD # is required by the sd-bus provider
|
||||
depends on !BR2_STATIC_LIBS # wlroots
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # pango, wlroots
|
||||
depends on BR2_PACKAGE_HAS_LIBEGL # wlroots
|
||||
depends on BR2_PACKAGE_HAS_LIBGLES # wlroots
|
||||
depends on BR2_PACKAGE_HAS_LIBGBM # wlroots
|
||||
depends on BR2_PACKAGE_HAS_UDEV # wlroots
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # json-c, pango
|
||||
depends on BR2_USE_WCHAR # pango
|
||||
depends on BR2_USE_MMU # pango
|
||||
depends on BR2_INSTALL_LIBSTDCPP # pango
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # pango
|
||||
select BR2_PACKAGE_WLROOTS
|
||||
select BR2_PACKAGE_JSON_C
|
||||
select BR2_PACKAGE_PCRE2
|
||||
select BR2_PACKAGE_CAIRO
|
||||
select BR2_PACKAGE_CAIRO_PNG
|
||||
select BR2_PACKAGE_PANGO
|
||||
select BR2_PACKAGE_XKEYBOARD_CONFIG # runtime
|
||||
help
|
||||
i3-compatible Wayland compositor
|
||||
Note:
|
||||
The default sway config uses the foot package as the
|
||||
default terminal. If you plan on using the default
|
||||
config, it is recommended to select the foot package!
|
||||
|
||||
https://github.com/swaywm/sway
|
||||
|
||||
if BR2_PACKAGE_SWAY
|
||||
|
||||
config BR2_PACKAGE_SWAY_SWAYBAR
|
||||
bool "swaybar"
|
||||
select BR2_PACKAGE_DEJAVU
|
||||
select BR2_PACKAGE_JQ if BR2_PACKAGE_BASH_COMPLETION # Runtime
|
||||
select BR2_PACKAGE_WMENU # Runtime
|
||||
help
|
||||
Enable support for swaybar
|
||||
|
||||
if BR2_PACKAGE_SWAY_SWAYBAR
|
||||
|
||||
config BR2_PACKAGE_SWAY_SWAYBAR_TRAY
|
||||
bool "swaybar tray"
|
||||
help
|
||||
Enable support for swaybar tray
|
||||
|
||||
endif # BR2_PACKAGE_SWAY_SWAYBAR
|
||||
|
||||
config BR2_PACKAGE_SWAY_SWAYNAG
|
||||
bool "swaynag"
|
||||
help
|
||||
Enable support for swaynag
|
||||
|
||||
endif # BR2_PACKAGE_SWAY
|
||||
|
||||
comment "sway needs systemd, udev, EGL, OpenGL ES and GBM support"
|
||||
depends on !BR2_PACKAGE_SYSTEMD || \
|
||||
!BR2_PACKAGE_HAS_UDEV || \
|
||||
!BR2_PACKAGE_HAS_LIBEGL || \
|
||||
!BR2_PACKAGE_HAS_LIBGLES || \
|
||||
!BR2_PACKAGE_HAS_LIBGBM
|
||||
|
||||
comment "sway needs a toolchain w/ wchar, threads, C++, dynamic library, gcc >= 4.9"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on !BR2_USE_WCHAR || \
|
||||
!BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
|
||||
!BR2_INSTALL_LIBSTDCPP || \
|
||||
BR2_STATIC_LIBS
|
||||
6
package/sway/sway.hash
Normal file
6
package/sway/sway.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
# https://github.com/swaywm/sway/releases/download/1.12/sway-1.12.tar.gz.sig
|
||||
# with key 34FF9526CFEF0E97A340E2E40FDE7BE0E88F5E48 "emersion <contact@emersion.fr>"
|
||||
# Unfortunately, the keys expired on 2025-04-03.
|
||||
sha256 a7b1becc217433c11c6284d36bcea0687b87b77b0ed26a384565292ec321f2b1 sway-1.12.tar.gz
|
||||
sha256 bd35722bff46327f5eded1d211207277bbe043d2a22048b282c42ef801593b8b LICENSE
|
||||
56
package/sway/sway.mk
Normal file
56
package/sway/sway.mk
Normal file
@@ -0,0 +1,56 @@
|
||||
################################################################################
|
||||
#
|
||||
# sway
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SWAY_VERSION = 1.12
|
||||
SWAY_SITE = https://github.com/swaywm/sway/releases/download/$(SWAY_VERSION)
|
||||
SWAY_LICENSE = MIT
|
||||
SWAY_LICENSE_FILES = LICENSE
|
||||
SWAY_DEPENDENCIES = systemd host-pkgconf wlroots json-c pcre2 cairo pango
|
||||
SWAY_CONF_OPTS = \
|
||||
-Dwerror=false \
|
||||
-Dzsh-completions=false \
|
||||
-Dfish-completions=false \
|
||||
-Dman-pages=disabled \
|
||||
-Dsd-bus-provider=libsystemd
|
||||
|
||||
ifeq ($(BR2_PACKAGE_GDK_PIXBUF),y)
|
||||
SWAY_CONF_OPTS += -Dgdk-pixbuf=enabled
|
||||
SWAY_DEPENDENCIES += gdk-pixbuf
|
||||
else
|
||||
SWAY_CONF_OPTS += -Dgdk-pixbuf=disabled
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_BASH_COMPLETION),y)
|
||||
SWAY_CONF_OPTS += -Dbash-completions=true
|
||||
else
|
||||
SWAY_CONF_OPTS += -Dbash-completions=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SWAYBG),y)
|
||||
SWAY_CONF_OPTS += -Ddefault-wallpaper=true
|
||||
else
|
||||
SWAY_CONF_OPTS += -Ddefault-wallpaper=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SWAY_SWAYBAR),y)
|
||||
SWAY_CONF_OPTS += -Dswaybar=true
|
||||
else
|
||||
SWAY_CONF_OPTS += -Dswaybar=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SWAY_SWAYNAG),y)
|
||||
SWAY_CONF_OPTS += -Dswaynag=true
|
||||
else
|
||||
SWAY_CONF_OPTS += -Dswaynag=false
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SWAY_SWAYBAR_TRAY),y)
|
||||
SWAY_CONF_OPTS += -Dtray=enabled
|
||||
else
|
||||
SWAY_CONF_OPTS += -Dtray=disabled
|
||||
endif
|
||||
|
||||
$(eval $(meson-package))
|
||||
Reference in New Issue
Block a user