sing-box: auto updated to 1.2.7-1

This commit is contained in:
Lilac 2023-05-21 18:02:30 +00:00
parent ff6f97f9ca
commit a6ade8243a

View file

@ -1,8 +1,8 @@
# Maintainer: everyx <lunt.luo#gmail.com> # Maintainer: everyx <lunt.luo#gmail.com>
pkgname=sing-box pkgname=sing-box
pkgver=1.2.6 pkgver=1.2.7
pkgrel=2 pkgrel=1
pkgdesc='The universal proxy platform.' pkgdesc='The universal proxy platform.'
arch=('x86_64' 'i686') arch=('x86_64' 'i686')
@ -12,7 +12,7 @@ license=('GPL3 with name use or association addition')
makedepends=('go') makedepends=('go')
source=("$pkgname-$pkgver.tar.gz::https://github.com/SagerNet/sing-box/archive/v$pkgver.tar.gz") source=("$pkgname-$pkgver.tar.gz::https://github.com/SagerNet/sing-box/archive/v$pkgver.tar.gz")
sha256sums=('8f7adf55ed9afe6ec0dd8b04ed64dd3a6243578ee779f909dfb3778fa2dbda10') sha256sums=('49b829f4cf148b59789eeaf8d01987e7526a44d0290cf608a6350c57562ae177')
conflicts=("$pkgname-git" "$pkgname-beta") conflicts=("$pkgname-git" "$pkgname-beta")
optdepends=('sing-geosite: sing-geosite database' optdepends=('sing-geosite: sing-geosite database'
@ -41,6 +41,8 @@ build(){
-s -w -buildid= -linkmode=external" \ -s -w -buildid= -linkmode=external" \
./cmd/sing-box ./cmd/sing-box
sed -i "/^\[Service\]$/a StateDirectory=$pkgname" release/config/$pkgname.service
sed -i "/^\[Service\]$/a StateDirectory=$pkgname-%i" release/config/$pkgname@.service
sed -i "/^\[Service\]$/a User=$pkgname" release/config/$pkgname*.service sed -i "/^\[Service\]$/a User=$pkgname" release/config/$pkgname*.service
echo "u $pkgname - \"Sing-box Service\" - -" > "release/config/$pkgname.sysusers" echo "u $pkgname - \"Sing-box Service\" - -" > "release/config/$pkgname.sysusers"