DeepChirp pushed to branch main at Arch Linux / Packaging / Packages / sing-box


Commits:
265a280b by DeepChirp at 2026-08-13T16:15:23+08:00
Use $(< file) instead of $(cat file)

The command substitution $(cat file) can be replaced by the equivalent
but faster $(< file).

See: 
<https://www.gnu.org/software/bash/manual/html_node/Command-Substitution.html>

- - - - -
4ea379c7 by DeepChirp at 2026-08-13T16:31:18+08:00
upgpkg: 1.13.18-2

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = sing-box
        pkgdesc = The universal proxy platform
        pkgver = 1.13.18
-       pkgrel = 1
+       pkgrel = 2
        url = https://sing-box.sagernet.org/
        arch = x86_64
        license = GPL-3.0-or-later


=====================================
PKGBUILD
=====================================
@@ -6,7 +6,7 @@ pkgname=sing-box
 pkgver=1.13.18
 # Check the hash for `cronet-go` in `go.sum`, and visit the `go` branch of 
`SagerNet/cronet-go` to obtain the commit hash
 _cronet_commit_hash=7e27f60f7f04a1c762b6bb69b4a44d7b24cd7a5d
-pkgrel=1
+pkgrel=2
 pkgdesc='The universal proxy platform'
 arch=('x86_64')
 url='https://sing-box.sagernet.org/'
@@ -101,8 +101,8 @@ build() {
     go mod edit -replace "github.com/sagernet/cronet-go=${srcdir}/cronet-go"
     go mod edit -replace 
"github.com/sagernet/cronet-go/lib/${_cronet_lib}=${srcdir}/cronet-go/lib/${_cronet_lib}"
 
-    local _TAGS=$(cat release/DEFAULT_BUILD_TAGS)
-    local _LDFLAGS_SHARED=$(cat release/LDFLAGS)
+    local _TAGS=$(< release/DEFAULT_BUILD_TAGS)
+    local _LDFLAGS_SHARED=$(< release/LDFLAGS)
 
     go build -v \
         -tags "${_TAGS}" \



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/sing-box/-/compare/d5d072edb39932ce5f7891b1e48b81fb8819e852...4ea379c7104ba35251a7c85e166167497f6f3226

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/sing-box/-/compare/d5d072edb39932ce5f7891b1e48b81fb8819e852...4ea379c7104ba35251a7c85e166167497f6f3226
You're receiving this email because of your account on gitlab.archlinux.org. 
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications 
| Help: https://gitlab.archlinux.org/help


Reply via email to