-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New package: nekoray 3.26 #48831
New package: nekoray 3.26 #48831
Conversation
As far as I know, you should insert distfiles before checksum and remove do_fetch (from what I've learned git clone in do_fetch is not the right way to do it in Void): Oh, and remember to update the sha256sum checksum. |
Yes, I checked the order with
or this
to get them. Also there's an issue with database packages. I tried to use |
In this case, maybe somebody more knowledgeable than myself will inspect your code and be able to help you with this multi-faceted problem. |
# Template file for 'nekoray'
pkgname=nekoray
version=3.26
revision=1
build_style=cmake
archs="aarch64* x86_64*"
configure_args="-DNKR_PACKAGE=ON -DQT_VERSION_MAJOR=6"
hostmakedepends="git go protobuf qt6-base qt6-tools"
makedepends="protobuf-devel qt6-svg-devel yaml-cpp-devel zxing-cpp-devel"
short_desc="GUI proxy configuration manager (backend: v2ray / sing-box)"
maintainer="chrysos349 <chrysostom349@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://matsuridayo.github.io"
changelog="https://github.com/MatsuriDayo/nekoray/releases"
_qho_commit=52e25acf221e5ac86ce648f6922620fb2d6a7121
_qjs_commit=3fb0770c9ee5ab031a56072520641d4577b694e3
distfiles="https://github.com/MatsuriDayo/nekoray/archive/${version}.tar.gz
https://github.com/Skycoder42/QHotkey/archive/${_qho_commit}.tar.gz
https://github.com/MatsuriDayo/qjs/archive/${_qjs_commit}.tar.gz"
checksum="21977bc7f8e732b5e171a0f4e099050228815a3ca49582056060bff5023e5a20
e1d69ed7b718770be9b58de674ba59362a3227437071cf575f0481d921c414b5
1cc5262c624d42644c2c0cce0fae9ea6fd258d37f2ac6a5096ab55f814ea2faa"
. $XBPS_COMMONDIR/environment/build-style/go.sh
export GOOS=linux
post_extract() {
mv nekoray-*/* .
mv QHotkey-*/* 3rdparty/QHotkey
mv qjs-*/* 3rdparty/qjs
}
post_build() {
./libs/get_source.sh
./libs/build_go.sh
}
do_install() {
vinstall build/nekoray 755 usr/lib/nekoray
vcopy deployment/linux*/neko* usr/lib/nekoray
vmkdir usr/share/pixmaps
vcopy res/public/neko* usr/share/pixmaps
vinstall ${FILESDIR}/nekoray.desktop 644 usr/share/applications
vmkdir usr/bin
ln -s /usr/lib/nekoray/nekoray ${DESTDIR}/usr/bin
} |
you could also add 32-bit archs support via the patch below. i didn't encounter any cross-compilation errors. i can't guarantee there won't be any runtime errors, though. if you decide to use the patch, remove
--- a/libs/build_go.sh
+++ b/libs/build_go.sh
@@ -5,7 +5,9 @@ source libs/env_deploy.sh
[ "$GOOS" == "windows" ] && [ "$GOARCH" == "amd64" ] && DEST=$DEPLOYMENT/windows64 || true
[ "$GOOS" == "windows" ] && [ "$GOARCH" == "arm64" ] && DEST=$DEPLOYMENT/windows-arm64 || true
[ "$GOOS" == "linux" ] && [ "$GOARCH" == "amd64" ] && DEST=$DEPLOYMENT/linux64 || true
+[ "$GOOS" == "linux" ] && [ "$GOARCH" == "386" ] && DEST=$DEPLOYMENT/linux32 || true
[ "$GOOS" == "linux" ] && [ "$GOARCH" == "arm64" ] && DEST=$DEPLOYMENT/linux-arm64 || true
+[ "$GOOS" == "linux" ] && [ "$GOARCH" == "arm" ] && DEST=$DEPLOYMENT/linux-arm || true
[ "$GOOS" == "darwin" ] && [ "$GOARCH" == "amd64" ] && DEST=$DEPLOYMENT/macos-amd64 || true
[ "$GOOS" == "darwin" ] && [ "$GOARCH" == "arm64" ] && DEST=$DEPLOYMENT/macos-arm64 || true
if [ -z $DEST ]; then |
Looks great and compiles without errors. The only remain part is |
3473112
to
01c5e11
Compare
srcpkgs/nekoray/template
Outdated
makedepends="protobuf-devel qt6-svg-devel yaml-cpp-devel zxing-cpp-devel" | ||
depends="sing-geoip sing-geosite" | ||
short_desc="GUI proxy configuration manager (backend: v2ray / sing-box)" | ||
maintainer="chrysos349 <chrysostom349@gmail.com>" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please put yourself as a maintainer of the template.
9e9ab12
to
f865c8a
Compare
1ad168f
to
99f9b64
Compare
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it. |
Testing the changes
New package
Local build testing
x86_64-glibc
)