@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"
}
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