diff options
author | bilabila | 2024-05-01 17:04:35 +0800 |
---|---|---|
committer | bilabila | 2024-05-01 17:04:58 +0800 |
commit | 0d9703563e51d45e290f87ae26f925d50d059445 (patch) | |
tree | 671816dd5801419d5464deb379889914ed6c1790 | |
parent | 550fdd5b967fb008e07ee2a9fdd8ca641a62ac0d (diff) | |
download | aur-0d9703563e51d45e290f87ae26f925d50d059445.tar.gz |
fix ca
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 11 | ||||
-rwxr-xr-x | netease-cloud-music-unblock-enhanced | 2 | ||||
-rw-r--r-- | unblock.install | 5 |
4 files changed, 17 insertions, 11 deletions
@@ -1,18 +1,20 @@ pkgbase = netease-cloud-music-unblock-enhanced-git pkgdesc = Revive unavailable songs for Netease Cloud Music (Refactored & Enhanced version) - pkgver = r667.dbb73aa - pkgrel = 2 + pkgver = r1263.d731b75 + pkgrel = 1 url = https://github.com/UnblockNeteaseMusic/server + install = unblock.install arch = x86_64 license = LGPL3 - depends = nss + depends = p11-kit depends = nodejs depends = netease-cloud-music + optdepends = yt-dlp: youtube provider provides = netease-cloud-music-unblock-enhanced conflicts = netease-cloud-music-unblock-enhanced source = git+https://github.com/UnblockNeteaseMusic/server source = netease-cloud-music-unblock-enhanced sha512sums = SKIP - sha512sums = ce4d0bf8a0e4ef86c15b16d98be5281a88afcdb93b2657a21f45d69e6c51316dbf1b297df97da4bc07cd221646b772136b4292cbb2b71e8426399adafeff36b1 + sha512sums = SKIP pkgname = netease-cloud-music-unblock-enhanced-git @@ -1,19 +1,20 @@ # Maintainer: bilabila <bilabila@qq.com> _pkgname=netease-cloud-music-unblock-enhanced pkgname=$_pkgname-git -pkgver=r667.dbb73aa -pkgrel=2 +pkgver=r1263.d731b75 +pkgrel=1 pkgdesc='Revive unavailable songs for Netease Cloud Music (Refactored & Enhanced version)' arch=(x86_64) url=https://github.com/UnblockNeteaseMusic/server provides=($_pkgname) conflicts=($_pkgname) license=(LGPL3) -depends=(nss nodejs netease-cloud-music) +depends=(p11-kit nodejs netease-cloud-music) +optdepends=('yt-dlp: youtube provider') source=(git+https://github.com/UnblockNeteaseMusic/server netease-cloud-music-unblock-enhanced) -sha512sums=(SKIP - ce4d0bf8a0e4ef86c15b16d98be5281a88afcdb93b2657a21f45d69e6c51316dbf1b297df97da4bc07cd221646b772136b4292cbb2b71e8426399adafeff36b1) +sha512sums=(SKIP SKIP) +install=unblock.install pkgver() { cd server printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" diff --git a/netease-cloud-music-unblock-enhanced b/netease-cloud-music-unblock-enhanced index b713acf9301f..1db37821e1bb 100755 --- a/netease-cloud-music-unblock-enhanced +++ b/netease-cloud-music-unblock-enhanced @@ -2,8 +2,6 @@ trap 'kill $(jobs -p)' SIGINT SIGTERM EXIT name=netease-cloud-music-unblock-enhanced cd /usr/share/$name -certutil -d sql:$HOME/.pki/nssdb -D -n $name -certutil -d sql:$HOME/.pki/nssdb -A -i './ca.crt' -n $name -t C,, port=($(comm -23 <(seq 49152 65535 | sort) <(ss -Htan | awk '{print $4}' | cut -d':' -f2 | sort -u) | shuf | head -n 2)) node ./app.js -p ${port[0]}:${port[1]} "$@" & export all_proxy=http://127.0.0.1:${port[0]} diff --git a/unblock.install b/unblock.install new file mode 100644 index 000000000000..ead86ff63efc --- /dev/null +++ b/unblock.install @@ -0,0 +1,5 @@ +post_upgrade() { + echo "==> install certificates" + trust anchor --store /usr/share/netease-cloud-music-unblock-enhanced/ca.crt +} + |