diff options
author | database64128 | 2021-08-01 16:45:12 +0800 |
---|---|---|
committer | database64128 | 2021-08-01 16:45:12 +0800 |
commit | cf8d0198a30df753fe1d0635e2017e5eb563c56d (patch) | |
tree | f70da3ea26a953396d0ed1250d86af6ffa11c2bc | |
download | aur-cf8d0198a30df753fe1d0635e2017e5eb563c56d.tar.gz |
📦 Initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 26 |
3 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5573a95167d3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = qv2ray-static-bin-nightly + pkgdesc = A cross platform connection manager for V2Ray and other backends + pkgver = 20210731 + pkgrel = 1 + url = https://github.com/moodyhunter/QvPersonal + arch = x86_64 + license = GPL3 + depends = glibc + optdepends = v2ray: use packaged v2ray + provides = qv2ray + conflicts = qv2ray + conflicts = xray + source = api-output.json::https://api.github.com/repos/Shadowsocks-NET/QvStaticBuild/releases/latest + b2sums = SKIP + +pkgname = qv2ray-static-bin-nightly diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..dc5bd950e2a3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +pkg/ +src/ + +*.tar.zst diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a6c577cfc4d5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: database64128 <free122448@hotmail.com> +pkgname=qv2ray-static-bin-nightly +pkgver=20210731 +pkgrel=1 +pkgdesc="A cross platform connection manager for V2Ray and other backends" +arch=(x86_64) +url="https://github.com/moodyhunter/QvPersonal" +license=('GPL3') +depends=('glibc') +optdepends=('v2ray: use packaged v2ray') +provides=('qv2ray') +conflicts=('qv2ray' 'xray') +source=("api-output.json::https://api.github.com/repos/Shadowsocks-NET/QvStaticBuild/releases/latest") +b2sums=('SKIP') + +pkgver() { + cat api-output.json | grep tag_name | cut -d '"' -f 4 | sed 's/^nightly-//;s/-//g' +} + +package() { + curl -Lo $pkgver.tar.zst $(cat api-output.json | grep browser_download_url | cut -d '"' -f 4) + rm api-output.json + rm ../api-output.json + mkdir $pkgdir/usr + tar -C $pkgdir/usr -xvf $pkgver.tar.zst +} |