sub-store-git
LOW
maintainer ChenPi11
0 votes
scanned 2026-09-20 15:33:19.470652
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: chenpi11 <chenpi11@users.noreply.github.com>
2
pkgname=sub-store-git
3
pkgver=2.39.9.r0.g0000000
4
pkgrel=1
5
pkgdesc='Advanced Subscription Manager for QX, Loon, Surge, Stash, Egern and Shadowrocket (git)'
6
arch=('any')
7
url='https://github.com/sub-store-org/Sub-Store'
8
license=('AGPL-3.0-only')
9
depends=('nodejs>=24.15.0')
10
makedepends=('git' 'pnpm')
11
provides=('sub-store')
12
conflicts=('sub-store' 'sub-store-bin')
13
source=('git+https://github.com/sub-store-org/Sub-Store.git'
14
'sub-store@.service'
15
'sub-store.sysusers'
16
'sub-store.tmpfiles')
17
sha256sums=('SKIP'
18
'SKIP'
19
'SKIP'
20
'SKIP')
21
22
pkgver() {
23
cd Sub-Store
24
git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
25
}
26
27
prepare() {
28
cd Sub-Store/backend
29
pnpm install --frozen-lockfile
30
}
31
32
build() {
33
cd Sub-Store/backend
34
pnpm bundle:esbuild
35
}
36
37
package() {
38
# Install application files
39
install -Dm644 "$srcdir/Sub-Store/backend/dist/sub-store.bundle.js" \
40
"$pkgdir/usr/share/sub-store/sub-store.bundle.js"
41
install -Dm644 "$srcdir/Sub-Store/backend/dist/cron-sync-artifacts.min.js" \
42
"$pkgdir/usr/share/sub-store/cron-sync-artifacts.min.js"
43
install -Dm644 "$srcdir/Sub-Store/backend/dist/runtime-manifest.json" \
44
"$pkgdir/usr/share/sub-store/runtime-manifest.json"
45
install -Dm644 "$srcdir/Sub-Store/LICENSE" \
46
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
47
48
# Install wrapper script
49
install -Dm755 /dev/stdin "$pkgdir/usr/bin/sub-store" <<'EOF'
50
#!/bin/sh
51
exec node /usr/share/sub-store/sub-store.bundle.js "$@"
52
EOF
53
54
# Install systemd service
55
install -Dm644 "$srcdir/sub-store@.service" \
56
"$pkgdir/usr/lib/systemd/system/sub-store@.service"
57
58
# Install sysusers/tmpfiles
59
install -Dm644 "$srcdir/sub-store.sysusers" \
60
"$pkgdir/usr/lib/sysusers.d/sub-store.conf"
61
install -Dm644 "$srcdir/sub-store.tmpfiles" \
62
"$pkgdir/usr/lib/tmpfiles.d/sub-store.conf"
63
}
64
65
post_install() {
66
echo '==> Sub-Store (git) has been installed!'
67
echo '==> To start the service (default port 9999):'
68
echo ' systemctl enable --now sub-store@9999.service'
69
echo '==> To use a different port:'
70
echo ' systemctl enable --now sub-store@<PORT>.service'
71
echo '==> Web UI: https://sub-store.vercel.app'
72
}
73
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-20 15:33:19 | Low | 1 |