Lightweight Qt5 plain text editor for Linux
runtime dependencies | libgtk3 (Libraries/graphics) |
---|---|
qt5svg (Graphic libraries and applications/Other GUIs) | |
hunspell | |
make dependencies | qt5tools |
mkdir /data/buildroot/package/featherpad cat > /data/buildroot/package/featherpad/Config.in<< 'EOF' config BR2_PACKAGE_FEATHERPAD bool "featherpad" depends on BR2_PACKAGE_QT5SVG depends on BR2_PACKAGE_HUNSPELL depends on BR2_PACKAGE_LIBGTK3 depends on BR2_PACKAGE_QT5TOOLS help Lightweight Qt5 plain text editor for Linux EOF cat > /data/buildroot/package/featherpad/featherpad.mk<< 'EOF' ############################################################# # # featherpad #https://github.com/tsujan/FeatherPad/archive/refs/tags/V1.3.0.tar.gz ############################################################# FEATHERPAD_VERSION = 1.3.0 FEATHERPAD_SOURCE = V$(FEATHERPAD_VERSION).tar.gz FEATHERPAD_SITE = https://github.com/tsujan/FeatherPad/archive/refs/tags FEATHERPAD_DEPENDENCIES = qt5svg hunspell libgtk3 qt5tools FEATHERPAD_INSTALL_TARGET = YES FEATHERPAD_SUPPORTS_IN_SOURCE_BUILD = NO FEATHERPAD_CONF_OPTS = -DCMAKE_TOOLCHAIN_FILE=$(HOST_DIR)/share/buildroot/toolchainfile.cmake \ -DCMAKE_INSTALL_PREFIX=/usr define FEATHERPAD_CONFIGURE_CMDS if [[ ! -L "$(HOST_DIR)/usr/lib/libpcre.so.3" ]]; then ln -s $(HOST_DIR)/usr/lib/libpcre.so $(HOST_DIR)/usr/lib/libpcre.so.3; fi if [[ ! -d $(@D)/buildroot-build ]]; then mkdir $(@D)/buildroot-build; fi cd $(@D)/buildroot-build && \ LDFLAGS="$(LDFLAGS) -pthread -Wl,--as-needed -Wl,--allow-shlib-undefined" cmake "$(@D)/" $(FEATHERPAD_CONF_OPTS) endef $(eval $(cmake-package)) EOF sed -i '/menu "Custom packages"/a source "package/featherpad/Config.in"' /data/buildroot/package/Config.in