package/chawan: new package
PATCH 1/1 package/chawan: new package
Chawan is a text-mode web browser and pager for Unix-like systems, with a focus on implementing modern web standards while remaining self-contained, easy to understand and extensible.
It includes functionality such as CSS, inline images inside the terminal, and JavaScript through a small, independent browser engine.
--- DEVELOPERS | 1 + package/Config.in | 1 + package/chawan/Config.in | 14 ++++++++++++++ package/chawan/chawan.hash | 3 +++ package/chawan/chawan.mk | 39 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 58 insertions(+) create mode 100644 package/chawan/Config.in create mode 100644 package/chawan/chawan.hash create mode 100644 package/chawan/chawan.mk
DEVELOPERS +1 -0
@@ -3461,6 +3461,7 @@ F: board/stmicroelectronics/stm32f746-disco/ F: configs/qemu_riscv32_nommu_virt_defconfig F: configs/stm32f746_disco_sd_defconfig F: package/asterisk/ +F: package/chawan/ F: package/evilwm/ F: package/fbv/ F: package/libpam-pkcs11/
package/Config.in +1 -0
@@ -2441,6 +2441,7 @@ endif source "package/casync/Config.in" source "package/casync-nano/Config.in" source "package/cfm/Config.in" + source "package/chawan/Config.in" source "package/chrony/Config.in" source "package/civetweb/Config.in" source "package/cloudflared/Config.in"
package/chawan/Config.in new file +14 -0
@@ -0,0 +1,14 @@ +config BR2_PACKAGE_CHAWAN + bool "chawan" + depends on BR2_USE_MMU + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_11 + select BR2_PACKAGE_BROTLI + select BR2_PACKAGE_LIBSSH2 + select BR2_PACKAGE_OPENSSL + help + A TUI Web-Browser. + + https://chawan.net/ + +comment "chawan needs a toolchain w/ gcc >= 11" + depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_11
package/chawan/chawan.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally computed +sha256 e0a06e1504e10a51c6009751d79b798c98d8274e559fe195d4b4b7ddadf91bb8 v0.4.4.tar.gz +sha256 7e12e5df4bae12cb21581ba157ced20e1986a0508dd10d0e8a4ab9a4cf94e85c UNLICENSE
package/chawan/chawan.mk new file +39 -0
@@ -0,0 +1,39 @@ +################################################################################ +# +# chawan +# +################################################################################ + +CHAWAN_VERSION = 0.4.4 +CHAWAN_SITE = https://git.sr.ht/~bptato/chawan/archive +CHAWAN_SOURCE = v$(CHAWAN_VERSION).tar.gz +CHAWAN_LICENSE = Public Domain +CHAWAN_LICENSE_FILES = UNLICENSE + +CHAWAN_DEPENDENCIES = host-nim brotli libssh2 openssl + +ifeq ($(BR2_aarch64),y) +CHAWAN_TARGET_ARCH = arm64 +else ifeq ($(BR2_x86_64),y) +CHAWAN_TARGET_ARCH = amd64 +else +CHAWAN_TARGET_ARCH = $(BR2_ARCH) +endif + +TARGET_CONFIGURE_OPTS += \ + FLAGS="--os=linux \ + --cpu:$(CHAWAN_TARGET_ARCH) \ + --gcc.exe:$(TARGET_CROSS)gcc \ + --gcc.linkerexe:$(TARGET_CROSS)gcc" \ + PREFIX="/usr" + +define CHAWAN_BUILD_CMDS + $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) all +endef + +define CHAWAN_INSTALL_TARGET_CMDS + $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \ + DESTDIR=$(TARGET_DIR) install +endef + +$(eval $(generic-package))
Signature · 6 lines
2.47.3 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Waldemar Brodkorb, thanks for your patch.
Quoted 1 line
+CHAWAN_LICENSE = Public Domain
The license identifier "Public Domain" is not a valid SPDX identifier. The presence of an UNLICENSE file (listed in CHAWAN_LICENSE_FILES and present in the .hash file) indicates the project uses the Unlicense. You must use the valid SPDX identifier Unlicense instead. - [Source: Expert Intuition]
Quoted 1 line
+CHAWAN_DEPENDENCIES = host-nim brotli libssh2 openssl
The CHAWAN_DEPENDENCIES list is not sorted alphabetically. The correct order is: brotli, host-nim, libssh2, openssl. - [Source: Expert Intuition]
Quoted 2 lines
comment "chawan needs a toolchain w/ gcc >= 11"
depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_11
The comment for the toolchain dependency should repeat all non-toolchain dependencies of the package so that it is only visible when the package itself would be visible. Since chawan also depends on BR2_USE_MMU, the comment must depend on BR2_USE_MMU as well (e.g., depends on BR2_USE_MMU && !BR2_TOOLCHAIN_GCC_AT_LEAST_11). - [Source: Expert Intuition]
Quoted 6 lines
TARGET_CONFIGURE_OPTS += \
FLAGS="--os=linux \
--cpu:$(CHAWAN_TARGET_ARCH) \
--gcc.exe:$(TARGET_CROSS)gcc \
--gcc.linkerexe:$(TARGET_CROSS)gcc" \
PREFIX="/usr"When a variable assignment is split across multiple lines using a backslash, all follow-up lines must be indented with exactly one single tab character. The continuation lines here appear to use multiple tabs (or spaces). Please adjust to a single tab per continuation line. - [Source: Expert Intuition]
Quoted 4 lines
define
CHAWAN_INSTALL_TARGET_CMDS$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \ DESTDIR=$(TARGET_DIR) installendef
Inside a define block, command continuation lines should be indented with a single tab. The line DESTDIR=$(TARGET_DIR) install appears to have two tabs. Please use a single tab for the continuation. - [Source: Expert Intuition]
Best regards,
Gullient Dowan
Assisted by Buildroot Review Assistant (used nvidia/nemotron-3-ultra-550b-a55b:free).
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hello,
Quoted 8 lines · Waldemar Brodkorb
Chawan is a text-mode web browser and pager for Unix-like systems, with a focus on implementing modern web standards while remaining self-contained, easy to understand and extensible.
It includes functionality such as CSS, inline images inside the terminal, and JavaScript through a small, independent browser engine.
Signed-off-by Waldemar Brodkorb <[email protected]>
The AI-driven review reported by Gullient Dowan made valid comments. On additional comment below.
Quoted 15 lines
package/chawan/chawan.mk new file +15
-0+CHAWAN_VERSION = 0.4.4 +CHAWAN_SITE = https://git.sr.ht/~bptato/chawan/archive +CHAWAN_SOURCE = v$(CHAWAN_VERSION).tar.gz +CHAWAN_LICENSE = Public Domain +CHAWAN_LICENSE_FILES = UNLICENSE + +CHAWAN_DEPENDENCIES = host-nim brotli libssh2 openssl + +ifeq ($(BR2_aarch64),y) +CHAWAN_TARGET_ARCH = arm64 +else ifeq ($(BR2_x86_64),y) +CHAWAN_TARGET_ARCH = amd64 +else +CHAWAN_TARGET_ARCH = $(BR2_ARCH) +endif
package/chawan/chawan.mk line 31
Quoted 10 lines
package/chawan/chawan.mk new file +10
-0+ +TARGET_CONFIGURE_OPTS += \ + FLAGS="--os=linux \ + --cpu:$(CHAWAN_TARGET_ARCH) \ + --gcc.exe:$(TARGET_CROSS)gcc \ + --gcc.linkerexe:$(TARGET_CROSS)gcc" \ + PREFIX="/usr" + +define CHAWAN_BUILD_CMDS + $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) all
Pass $(TARGET_MAKE_ENV) in the environment.
package/chawan/chawan.mk line 36
Quoted 5 lines
package/chawan/chawan.mk new file +5
-0+endef + +define CHAWAN_INSTALL_TARGET_CMDS + $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \ + DESTDIR=$(TARGET_DIR) install
Same.
Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot