diff options
author | Dr. Incognito | 2020-02-21 11:11:17 +0800 |
---|---|---|
committer | Dr. Incognito | 2020-02-21 11:11:17 +0800 |
commit | 5a6eae1334237335c50281d87ea572a12161d0e4 (patch) | |
tree | 54a36e6006f89844720e13d3da336821e9a97a6a | |
parent | 56e78658101eedafcb6662ca941379ded812ef59 (diff) | |
download | aur-5a6eae1334237335c50281d87ea572a12161d0e4.tar.gz |
Use qzxing@gitee.com to accelerates the clone process.
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 14 |
2 files changed, 18 insertions, 5 deletions
@@ -5,12 +5,15 @@ pkgbase = v2ray-desktop url = https://github.com/Dr-Incognito/V2Ray-Desktop arch = x86_64 license = GPL3 - makedepends = git - makedepends = make + makedepends = git>=2.11 makedepends = qt5-tools>=5.14.0 + makedepends = qt5-declarative>=5.14.0 + makedepends = curl makedepends = which makedepends = gcc - makedepends = qt5-declarative>=5.14.0 + makedepends = make + makedepends = jq + makedepends = sed depends = v2ray depends = qt5-base>=5.14.0 depends = qt5-quickcontrols>=5.14.0 @@ -7,16 +7,26 @@ arch=("x86_64") url="https://github.com/Dr-Incognito/V2Ray-Desktop" license=("GPL3") depends=("v2ray" "qt5-base>=5.14.0" "qt5-quickcontrols>=5.14.0" "qt5-quickcontrols2>=5.14.0") -makedepends=("git" "make" "qt5-tools>=5.14.0" which gcc "qt5-declarative>=5.14.0") +makedepends=("git>=2.11" "qt5-tools>=5.14.0" "qt5-declarative>=5.14.0" curl which gcc make jq sed) provides=(v2ray-desktop) source=("V2Ray-Desktop::git+${url}#tag=${pkgver}") sha512sums=("SKIP") prepare() { cd "${srcdir}/V2Ray-Desktop" + + echo "Detecting your country ... Please wait ..." + country=$(curl -s https://ipvigilante.com/$(curl -s icanhazip.com) | jq -r '.data.country_name') + echo "Your country: $country" + + if [ "$country" = "China" ]; then + echo "Use qzxing@gitee.com for Chinese users ..." + sed -i "s/github.com\/ftylitak/gitee.com\/Dr-Incognito/" .gitmodules + fi + echo "Initialize submodules. This may take a long time ..." git submodule init - git submodule update + git submodule update --progress } build() { |