From 8275a7da2737ef0f832b8b25dbb5a9994e5f37a7 Mon Sep 17 00:00:00 2001 From: qr243vbi Date: Sun, 3 May 2026 08:51:25 +0800 Subject: [PATCH 1/7] Add NekoBox --- common/shlibs | 23 +++++++++++++++++ srcpkgs/nekobox-core | 1 + srcpkgs/nekobox/template | 56 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+) create mode 120000 srcpkgs/nekobox-core create mode 100644 srcpkgs/nekobox/template diff --git a/common/shlibs b/common/shlibs index b24f24a188a9ad..fe37aa834783aa 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4570,3 +4570,26 @@ libresvg.so.0.46 libresvg0-0.46.0_1 libgpiod.so.3 libgpiod-2.2_4 libgpiodcxx.so.2 libgpiod-2.2_4 libigloo.so.0 libigloo-0.9.5_1 +libthrift.so.0.22.0 thrift-0.22.0_1 +libthrift.so.0.22.0 thrift-0.22.0_1 +libthrift.so.0.22.0 thrift-0.22.0_1 +libthrift.so.0.22.0 thrift-0.22.0_1 +libthrift.so.0.22.0 thrift-0.22.0_1 +libthrift.so.0.22.0 thrift-0.22.0_1 +libthrift.so.0.22.0 thrift-0.22.0_1 +libthrift.so.0.22.0 thrift-0.22.0_1 +libthrift.so.0.22.0 thrift-0.22.0_1 +libthrift.so.0.22.0 thrift-0.22.0_1 +libthrift.so.0.22.0 thrift-0.22.0_1 +libthrift.so.0.22.0 thrift-0.22.0_1 +libthrift.so.0.22.0 thrift-0.22.0_1 +libthrift.so.0.22.0 thrift-0.22.0_1 +libthrift.so.0.22.0 thrift-0.22.0_1 +libthrift.so.0.22.0 thrift-0.22.0_1 +libthrift.so.0.22.0 thrift-0.22.0_1 +libthrift.so.0.22.0 thrift-0.22.0_1 +libthrift.so.0.22.0 thrift-0.22.0_1 +libthrift.so.0.22.0 thrift-0.22.0_1 +libthrift.so.0.22.0 thrift-0.22.0_1 +libthrift.so.0.22.0 thrift-0.22.0_1 +libthrift.so.0.22.0 thrift-0.22.0_1 diff --git a/srcpkgs/nekobox-core b/srcpkgs/nekobox-core new file mode 120000 index 00000000000000..711e1ce73e6476 --- /dev/null +++ b/srcpkgs/nekobox-core @@ -0,0 +1 @@ +nekobox \ No newline at end of file diff --git a/srcpkgs/nekobox/template b/srcpkgs/nekobox/template new file mode 100644 index 00000000000000..eae7f93e9c88fd --- /dev/null +++ b/srcpkgs/nekobox/template @@ -0,0 +1,56 @@ +# Template file for 'nekobox' +# +# NekoBox (NyameBox) - Cross-platform Qt proxy utility powered by sing-box +# +# Build Notes: +# - This package builds NekoBox from the unified source tarball which includes +# the sing-box core (Go) and the Qt frontend (C++) +# - The Go core is built with Cmake using go and thrift compilers +# - The Qt frontend is built with CMake using system Qt6 libraries +# - Thrift is used for RPC communication between the frontend and core +# +pkgname=nekobox +version=5.11.3 +revision=1 +# The unified source tarball extracts to nekobox-unified-source-VERSION +wrksrc="nekobox-unified-source-${version}" +build_style=cmake +# Configure CMake with Ninja generator and release build type. By default, BUILD_GO_PARTS and SKIP_UPDATER is ON. +configure_args="-GNinja -DCMAKE_BUILD_TYPE=Release NKR_DEFAULT_VERSION=${version}" +hostmakedepends="cmake ninja pkg-config qt6-base qt6-tools go thrift" +makedepends="qt6-base-devel qt6-declarative-devel thrift-devel openssl-devel boost-devel lmdb-devel acl-devel libunistring-devel libcurl-devel libzstd-devel patchelf" +depends="qt6-base qt6-wayland hicolor-icon-theme desktop-file-utils noto-fonts-emoji noto-fonts-ttf nekobox-core libcurl libunistring libzstd lmdb acl openssl" +short_desc="Cross-platform Qt proxy utility powered by sing-box" +maintainer="NekoBox Void Contributors " +license="GPL-3.0-or-later" +homepage="https://github.com/qr243vbi/nekobox" +distfiles="https://github.com/qr243vbi/nekobox/releases/download/${version}/${pkgname}-unified-source-${version}.tar.xz" +checksum=27514a8d203f65228f65720f9983f58fcdc976ab8a365c5bade0d1d8292593f3 + +# Build options - customize display backends +build_options="wayland" +build_options_default="wayland" + +desc_option_wayland="Enable Wayland support" + +do_install() { + # Install the main nekobox Qt application + # CMake installs to DESTDIR by default + cd "${wrksrc}/build" + DESTDIR="${DESTDIR}" cmake --install . + + # Install license documentation + if [ -f "LICENSE" ]; then + vlicense LICENSE + elif [ -f "COPYING" ]; then + vlicense COPYING + fi +} + +nekobox-core_package() { + short_desc+=" - core file" + pkg_install() { + vmove usr/bin/sing-box + vmove usr/libexec/Iblis/nekobox_core + } +} From fd651bc7c2ec78bef5ed07978d55a2a1d4a1b14f Mon Sep 17 00:00:00 2001 From: qr243vbi Date: Sun, 3 May 2026 09:57:10 +0800 Subject: [PATCH 2/7] Update template --- srcpkgs/nekobox/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/nekobox/template b/srcpkgs/nekobox/template index eae7f93e9c88fd..5675a81e591727 100644 --- a/srcpkgs/nekobox/template +++ b/srcpkgs/nekobox/template @@ -10,7 +10,7 @@ # - Thrift is used for RPC communication between the frontend and core # pkgname=nekobox -version=5.11.3 +version=5.11.4 revision=1 # The unified source tarball extracts to nekobox-unified-source-VERSION wrksrc="nekobox-unified-source-${version}" @@ -25,7 +25,7 @@ maintainer="NekoBox Void Contributors " license="GPL-3.0-or-later" homepage="https://github.com/qr243vbi/nekobox" distfiles="https://github.com/qr243vbi/nekobox/releases/download/${version}/${pkgname}-unified-source-${version}.tar.xz" -checksum=27514a8d203f65228f65720f9983f58fcdc976ab8a365c5bade0d1d8292593f3 +checksum=8e7be20f2946f013676d101df17b5bdb4345dd66a6ae8beb261c8f36e2482930 # Build options - customize display backends build_options="wayland" From 4ab0bc8a037ebc4befff3f02b9b5ffaf5cbb99f9 Mon Sep 17 00:00:00 2001 From: qr243vbi Date: Mon, 4 May 2026 08:44:27 +0300 Subject: [PATCH 3/7] Update template --- srcpkgs/nekobox/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/nekobox/template b/srcpkgs/nekobox/template index 5675a81e591727..02a7cdff6c27b2 100644 --- a/srcpkgs/nekobox/template +++ b/srcpkgs/nekobox/template @@ -10,7 +10,7 @@ # - Thrift is used for RPC communication between the frontend and core # pkgname=nekobox -version=5.11.4 +version=5.11.5 revision=1 # The unified source tarball extracts to nekobox-unified-source-VERSION wrksrc="nekobox-unified-source-${version}" @@ -25,7 +25,7 @@ maintainer="NekoBox Void Contributors " license="GPL-3.0-or-later" homepage="https://github.com/qr243vbi/nekobox" distfiles="https://github.com/qr243vbi/nekobox/releases/download/${version}/${pkgname}-unified-source-${version}.tar.xz" -checksum=8e7be20f2946f013676d101df17b5bdb4345dd66a6ae8beb261c8f36e2482930 +checksum=50e74889ccffaa90dd6d5214ccf7a238e7ab66f9dc69aa61ab811a689b0bea62 # Build options - customize display backends build_options="wayland" From df4f1fe95f0c21fa5f836afbf36f6719e1a94105 Mon Sep 17 00:00:00 2001 From: qr243vbi Date: Mon, 4 May 2026 23:27:07 +0800 Subject: [PATCH 4/7] Update template --- srcpkgs/nekobox/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/nekobox/template b/srcpkgs/nekobox/template index 02a7cdff6c27b2..328af01596a03d 100644 --- a/srcpkgs/nekobox/template +++ b/srcpkgs/nekobox/template @@ -10,7 +10,7 @@ # - Thrift is used for RPC communication between the frontend and core # pkgname=nekobox -version=5.11.5 +version=5.11.7 revision=1 # The unified source tarball extracts to nekobox-unified-source-VERSION wrksrc="nekobox-unified-source-${version}" @@ -25,7 +25,7 @@ maintainer="NekoBox Void Contributors " license="GPL-3.0-or-later" homepage="https://github.com/qr243vbi/nekobox" distfiles="https://github.com/qr243vbi/nekobox/releases/download/${version}/${pkgname}-unified-source-${version}.tar.xz" -checksum=50e74889ccffaa90dd6d5214ccf7a238e7ab66f9dc69aa61ab811a689b0bea62 +checksum=fb2bbbd544f07c9f4607073ea7df7433bc271ca01c40e0d48a1a8525488bdcd1 # Build options - customize display backends build_options="wayland" From 0a6045f037a5d2de0f4d1e0b3f6e1b19fa9ca269 Mon Sep 17 00:00:00 2001 From: qr243vbi Date: Wed, 6 May 2026 07:20:10 +0300 Subject: [PATCH 5/7] Update template --- srcpkgs/nekobox/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/nekobox/template b/srcpkgs/nekobox/template index 328af01596a03d..a1e94e98f4f3e0 100644 --- a/srcpkgs/nekobox/template +++ b/srcpkgs/nekobox/template @@ -25,7 +25,7 @@ maintainer="NekoBox Void Contributors " license="GPL-3.0-or-later" homepage="https://github.com/qr243vbi/nekobox" distfiles="https://github.com/qr243vbi/nekobox/releases/download/${version}/${pkgname}-unified-source-${version}.tar.xz" -checksum=fb2bbbd544f07c9f4607073ea7df7433bc271ca01c40e0d48a1a8525488bdcd1 +checksum=f24cbd1101fef2530f457c30e5f1e2bf1515921c0a0d2a974d22b8d4b697b7d9 # Build options - customize display backends build_options="wayland" From 39b7178b7aba3a8e185b6f6daefaf4b002396c52 Mon Sep 17 00:00:00 2001 From: qr243vbi Date: Wed, 6 May 2026 07:20:53 +0300 Subject: [PATCH 6/7] Update template --- srcpkgs/nekobox/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/nekobox/template b/srcpkgs/nekobox/template index a1e94e98f4f3e0..b0e66de478892b 100644 --- a/srcpkgs/nekobox/template +++ b/srcpkgs/nekobox/template @@ -10,7 +10,7 @@ # - Thrift is used for RPC communication between the frontend and core # pkgname=nekobox -version=5.11.7 +version=5.11.9 revision=1 # The unified source tarball extracts to nekobox-unified-source-VERSION wrksrc="nekobox-unified-source-${version}" From c014c4141a80fcd2374924f40959c2a810e916de Mon Sep 17 00:00:00 2001 From: qr243vbi Date: Sun, 10 May 2026 17:35:10 +0800 Subject: [PATCH 7/7] Update template --- srcpkgs/nekobox/template | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/srcpkgs/nekobox/template b/srcpkgs/nekobox/template index b0e66de478892b..4a4cc5b143cb62 100644 --- a/srcpkgs/nekobox/template +++ b/srcpkgs/nekobox/template @@ -10,7 +10,7 @@ # - Thrift is used for RPC communication between the frontend and core # pkgname=nekobox -version=5.11.9 +version=5.11.12 revision=1 # The unified source tarball extracts to nekobox-unified-source-VERSION wrksrc="nekobox-unified-source-${version}" @@ -18,14 +18,14 @@ build_style=cmake # Configure CMake with Ninja generator and release build type. By default, BUILD_GO_PARTS and SKIP_UPDATER is ON. configure_args="-GNinja -DCMAKE_BUILD_TYPE=Release NKR_DEFAULT_VERSION=${version}" hostmakedepends="cmake ninja pkg-config qt6-base qt6-tools go thrift" -makedepends="qt6-base-devel qt6-declarative-devel thrift-devel openssl-devel boost-devel lmdb-devel acl-devel libunistring-devel libcurl-devel libzstd-devel patchelf" -depends="qt6-base qt6-wayland hicolor-icon-theme desktop-file-utils noto-fonts-emoji noto-fonts-ttf nekobox-core libcurl libunistring libzstd lmdb acl openssl" +makedepends="qt6-base-devel qt6-declarative-devel thrift-devel openssl-devel boost-devel lmdb-devel acl-devel libunistring-devel libcurl-devel libzstd-devel patchelf rocksdb-devel yaml-cpp-devel" +depends="qt6-base qt6-wayland hicolor-icon-theme desktop-file-utils noto-fonts-emoji noto-fonts-ttf nekobox-core libcurl libunistring libzstd lmdb acl openssl rocksdb yaml-cpp" short_desc="Cross-platform Qt proxy utility powered by sing-box" maintainer="NekoBox Void Contributors " license="GPL-3.0-or-later" homepage="https://github.com/qr243vbi/nekobox" distfiles="https://github.com/qr243vbi/nekobox/releases/download/${version}/${pkgname}-unified-source-${version}.tar.xz" -checksum=f24cbd1101fef2530f457c30e5f1e2bf1515921c0a0d2a974d22b8d4b697b7d9 +checksum=b0e0445b78a66dace50aa9d4b4501fc662aabb1f528ef4998c2ff0d1896b66f1 # Build options - customize display backends build_options="wayland"