Package Details: webui 2.5.0+beta.2-1

Git Clone URL: https://aur.archlinux.org/webui.git (read-only, click to copy)
Package Base: webui
Description: Use any web browser as GUI, with your preferred language in the backend and HTML5 in the frontend, all in a lightweight portable lib.
Upstream URL: https://webui.me/
Keywords: webui
Licenses: MIT
Conflicts: webui-nossl
Provides: webui
Submitter: suliman
Maintainer: suliman (muhammad2052001, FabioLolix, jinzhongjia)
Last Packager: jinzhongjia
Votes: 3
Popularity: 0.004685
First Submitted: 2021-03-23 00:39 (UTC)
Last Updated: 2024-07-14 14:21 (UTC)

Pinned Comments

jinzhongjia commented on 2024-04-06 04:57 (UTC)

This package provides ssl support. Packages with ssl support may cause trouble to some users. I created a new package for this purpose: webui-nossl

Latest Comments

chardon_cs commented on 2024-07-23 13:56 (UTC) (edited on 2024-07-23 14:06 (UTC) by chardon_cs)

@FabioLolix Btw I just managed to ship both TLS & non-TLS versions in webui-stable.

Also, I have changed the shared library naming from libwebui.so to libwebui-2.so and libwebui-2-secured.so, with libwebui.so being a symbolic link to libwebui-2-secured.so for compatibility reason. Likewise, static library as libwebui-2-static.a and libwebui-2-secured-static.a, but libwebui.a will be ignored by pkgbuild.

In fact, I found that the webui bindings seem to try to find libwebui-2-static.a rather than libwebui.a. So libwebui.a will not work even though it can be installed properly.

The packaging script is as follows:

package() {
    cd "$srcdir/$_pkgname"
    # install header file
    install -Dm644 "include/webui.h" "$pkgdir/usr/include/webui.h"
    install -Dm644 "include/webui.hpp" "$pkgdir/usr/include/webui.hpp"
    # install library
    install -Dm644 "dist/libwebui-2-secure-static.a" -t "$pkgdir/usr/lib/"
    install -Dm755 "dist/webui-2-secure.so" "$pkgdir/usr/lib/libwebui-2-secure.so"

    install -Dm644 "dist/libwebui-2-static.a" -t "$pkgdir/usr/lib/"
    install -Dm755 "dist/webui-2.so" "$pkgdir/usr/lib/libwebui-2.so"

    ln -s /usr/lib/libwebui-2-secure.so $pkgdir/usr/lib/libwebui.so

    # install license file
    install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}

jinzhongjia commented on 2024-07-23 11:08 (UTC)

@FabioLolix In fact, 2.5.0 has been officially released, and it is in beta because other wrappers have not yet been updated.

FabioLolix commented on 2024-07-23 08:14 (UTC)

Btw this pkgbuild should build a fixed stable version by default unless there are unresolvable issues

jinzhongjia commented on 2024-04-06 04:57 (UTC)

This package provides ssl support. Packages with ssl support may cause trouble to some users. I created a new package for this purpose: webui-nossl

FabioLolix commented on 2024-01-24 20:51 (UTC)

@yingyi using a commit hash like 2a5f0c9 isn't a proper version, also they are not incremental, now fixed. I have keep the same hash instead of using the git tag this time

jinzhongjia commented on 2024-01-24 09:07 (UTC)

Currently maintained by me, I also maintain the zig package of webui

suliman commented on 2023-10-05 18:17 (UTC)

need new maintainer

schrmh commented on 2023-02-19 08:08 (UTC)

==> Starting build()...
-- The C compiler identification is GNU 12.2.1
-- The CXX compiler identification is GNU 12.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- [ WebUI version 1.0.20 ]
[*] Initializing Boost for WebUI...
[*] Searching for Boost libs...
-- Found Boost: /usr/lib/cmake/Boost-1.81.0/BoostConfig.cmake (found suitable version "1.81.0", minimum required is "1.76.0") found components: date_time filesystem regex 
[*] Using POSIX threading (pThread).
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
[*] Initializing 'WebUI' settings for GCC (Linux).
[*] Initializing installation...
[*] Initializing debian package...
[*] Initializing Boost for Examples... webui_linux_x86_64
[*] Searching for Boost libs...
[*] Using POSIX threading (pThread).
[*] Initializing 'Examples' settings for GCC (Linux).
[*] Found WebUI example: custom_browser.cpp 
[*] Found WebUI example: favicon.cpp 
[*] Found WebUI example: helloworld.cpp 
[*] Found WebUI example: multi_access.cpp 
[*] Found WebUI example: serve_folder.cpp 
[*] Found WebUI example: text_editor.cpp 
[*] Initializing Boost for cWebUI...
[*] Searching for Boost libs...
[*] Using POSIX threading (pThread).
[*] Searching for Python...
-- Found Python: /usr/include/python3.10 (found suitable version "3.10.9", minimum required is "3.8.0") found components: Development Development.Module Development.Embed 
[*] Initializing 'cWebUI' settings for GCC (Linux).
[*] Initializing Boost for Test...
[*] Searching for Boost libs...
[*] Using POSIX threading (pThread).
[*] Initializing 'Test' settings for GCC (Linux).
-- Configuring done
-- Generating done
-- Build files have been written to: /home/duda/.cache/paru/clone/webui/src/webui
[  6%] Building CXX object webui/CMakeFiles/webui_linux_x86_64.dir/webui.cpp.o
[ 12%] Linking CXX static library libwebui_linux_x86_64.a
[ 12%] Built target webui_linux_x86_64
[ 18%] Building CXX object examples/CMakeFiles/custom_browser.dir/custom_browser.cpp.o
[ 25%] Building CXX object examples/CMakeFiles/favicon.dir/favicon.cpp.o
[ 31%] Building CXX object examples/CMakeFiles/serve_folder.dir/serve_folder.cpp.o
[ 37%] Building CXX object examples/CMakeFiles/helloworld.dir/helloworld.cpp.o
[ 43%] Building CXX object examples/CMakeFiles/multi_access.dir/multi_access.cpp.o
[ 50%] Building CXX object examples/CMakeFiles/text_editor.dir/text_editor.cpp.o
In file included from /home/duda/.cache/paru/clone/webui/src/webui/examples/custom_browser.cpp:6:
/home/duda/.cache/paru/clone/webui/src/webui/include/webui/webui.hpp:77:64: error: field 'key_action_all' has incomplete type 'std::array<void (*)(webui::event), 1>'
   77 |                         std::array<void(*)(webui::event e), 1> key_action_all;
      |                                                                ^~~~~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/bits/std_thread.h:39,
                 from /usr/include/c++/12.2.1/thread:43,
                 from /home/duda/.cache/paru/clone/webui/src/webui/include/webui/webui.hpp:18:
/usr/include/c++/12.2.1/tuple:1595:45: note: declaration of 'struct std::array<void (*)(webui::event), 1>'
 1595 |   template<typename _Tp, size_t _Nm> struct array;
      |                                             ^~~~~
In file included from /home/duda/.cache/paru/clone/webui/src/webui/examples/serve_folder.cpp:6:
/home/duda/.cache/paru/clone/webui/src/webui/include/webui/webui.hpp:77:64: error: field 'key_action_all' has incomplete type 'std::array<void (*)(webui::event), 1>'
   77 |                         std::array<void(*)(webui::event e), 1> key_action_all;
      |                                                                ^~~~~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/bits/std_thread.h:39,
                 from /usr/include/c++/12.2.1/thread:43,
                 from /home/duda/.cache/paru/clone/webui/src/webui/include/webui/webui.hpp:18:
/usr/include/c++/12.2.1/tuple:1595:45: note: declaration of 'struct std::array<void (*)(webui::event), 1>'
 1595 |   template<typename _Tp, size_t _Nm> struct array;
      |                                             ^~~~~
In file included from /home/duda/.cache/paru/clone/webui/src/webui/examples/multi_access.cpp:6:
/home/duda/.cache/paru/clone/webui/src/webui/include/webui/webui.hpp:77:64: error: field 'key_action_all' has incomplete type 'std::array<void (*)(webui::event), 1>'
   77 |                         std::array<void(*)(webui::event e), 1> key_action_all;
      |                                                                ^~~~~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/bits/std_thread.h:39,
                 from /usr/include/c++/12.2.1/thread:43,
                 from /home/duda/.cache/paru/clone/webui/src/webui/include/webui/webui.hpp:18:
/usr/include/c++/12.2.1/tuple:1595:45: note: declaration of 'struct std::array<void (*)(webui::event), 1>'
 1595 |   template<typename _Tp, size_t _Nm> struct array;
      |                                             ^~~~~
In file included from /home/duda/.cache/paru/clone/webui/src/webui/examples/helloworld.cpp:6:
/home/duda/.cache/paru/clone/webui/src/webui/include/webui/webui.hpp:77:64: error: field 'key_action_all' has incomplete type 'std::array<void (*)(webui::event), 1>'
   77 |                         std::array<void(*)(webui::event e), 1> key_action_all;
      |                                                                ^~~~~~~~~~~~~~
In file included from /home/duda/.cache/paru/clone/webui/src/webui/examples/favicon.cpp:6:
/home/duda/.cache/paru/clone/webui/src/webui/include/webui/webui.hpp:77:64: error: field 'key_action_all' has incomplete type 'std::array<void (*)(webui::event), 1>'
   77 |                         std::array<void(*)(webui::event e), 1> key_action_all;
      |                                                                ^~~~~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/bits/std_thread.h:39,
                 from /usr/include/c++/12.2.1/thread:43,
                 from /home/duda/.cache/paru/clone/webui/src/webui/include/webui/webui.hpp:18:
/usr/include/c++/12.2.1/tuple:1595:45: note: declaration of 'struct std::array<void (*)(webui::event), 1>'
 1595 |   template<typename _Tp, size_t _Nm> struct array;
      |                                             ^~~~~
In file included from /usr/include/c++/12.2.1/bits/std_thread.h:39,
                 from /usr/include/c++/12.2.1/thread:43,
                 from /home/duda/.cache/paru/clone/webui/src/webui/include/webui/webui.hpp:18:
/usr/include/c++/12.2.1/tuple:1595:45: note: declaration of 'struct std::array<void (*)(webui::event), 1>'
 1595 |   template<typename _Tp, size_t _Nm> struct array;
      |                                             ^~~~~
make[2]: *** [examples/CMakeFiles/custom_browser.dir/build.make:76: examples/CMakeFiles/custom_browser.dir/custom_browser.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:186: examples/CMakeFiles/custom_browser.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [examples/CMakeFiles/serve_folder.dir/build.make:76: examples/CMakeFiles/serve_folder.dir/serve_folder.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:290: examples/CMakeFiles/serve_folder.dir/all] Error 2
In file included from /home/duda/.cache/paru/clone/webui/src/webui/examples/text_editor.cpp:6:
/home/duda/.cache/paru/clone/webui/src/webui/include/webui/webui.hpp:77:64: error: field 'key_action_all' has incomplete type 'std::array<void (*)(webui::event), 1>'
   77 |                         std::array<void(*)(webui::event e), 1> key_action_all;
      |                                                                ^~~~~~~~~~~~~~
In file included from /usr/include/c++/12.2.1/bits/std_thread.h:39,
                 from /usr/include/c++/12.2.1/thread:43,
                 from /home/duda/.cache/paru/clone/webui/src/webui/include/webui/webui.hpp:18:
/usr/include/c++/12.2.1/tuple:1595:45: note: declaration of 'struct std::array<void (*)(webui::event), 1>'
 1595 |   template<typename _Tp, size_t _Nm> struct array;
      |                                             ^~~~~
make[2]: *** [examples/CMakeFiles/helloworld.dir/build.make:76: examples/CMakeFiles/helloworld.dir/helloworld.cpp.o] Error 1
make[2]: *** [examples/CMakeFiles/multi_access.dir/build.make:76: examples/CMakeFiles/multi_access.dir/multi_access.cpp.o] Error 1
make[2]: *** [examples/CMakeFiles/favicon.dir/build.make:76: examples/CMakeFiles/favicon.dir/favicon.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:238: examples/CMakeFiles/helloworld.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:264: examples/CMakeFiles/multi_access.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:212: examples/CMakeFiles/favicon.dir/all] Error 2
make[2]: *** [examples/CMakeFiles/text_editor.dir/build.make:76: examples/CMakeFiles/text_editor.dir/text_editor.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:316: examples/CMakeFiles/text_editor.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'webui-1.0.20-1': 
error: packages failed to build: webui-1.0.20-1

suliman commented on 2021-11-20 17:24 (UTC)

Hi FabioLolix, I added you as a maintainer

FabioLolix commented on 2021-11-19 21:21 (UTC)

git and cmake are missing as makedepends, does this really need boost to run or boost-libs is sufficient?