Package Details: dnscrypt-proxy-china-list-git 74656.56e317e7e-1

Git Clone URL: https://aur.archlinux.org/dnscrypt-proxy-china-list-git.git (read-only, click to copy)
Package Base: dnscrypt-proxy-china-list-git
Description: Chinese-specific configuration to improve your favorite DNS server. Best partner for chnroutes. (DNSCrypt Proxy Version)
Upstream URL: https://github.com/felixonmars/dnsmasq-china-list
Licenses: WTFPL
Conflicts: dnscrypt-proxy-china-list
Provides: dnscrypt-proxy-china-list
Submitter: bruceutut
Maintainer: bruceutut
Last Packager: bruceutut
Votes: 1
Popularity: 0.000000
First Submitted: 2019-06-30 03:15 (UTC)
Last Updated: 2019-06-30 03:15 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

McDonald commented on 2022-10-16 03:08 (UTC) (edited on 2022-11-15 09:35 (UTC) by McDonald)

felixonmars/dnsmasq-china-list repo is too big and git clone is too slow. fix it:

# Maintainer: Bruce Zhang
pkgname=dnscrypt-proxy-china-list-git
pkgver=r147360.de0663d2f7
pkgrel=1
pkgdesc="Chinese-specific configuration to improve your favorite DNS server. Best partner for chnroutes. (DNSCrypt Proxy Version)"
arch=('any')
url="https://github.com/felixonmars/dnsmasq-china-list"
license=('WTFPL')
depends=('dnscrypt-proxy')
provides=('dnscrypt-proxy-china-list')
conflicts=('dnscrypt-proxy-china-list')
install=dnscrypt-proxy-china-list-git.install
source=('https://github.com/felixonmars/dnsmasq-china-list/raw/master/Makefile'
        'https://github.com/felixonmars/dnsmasq-china-list/raw/master/accelerated-domains.china.conf'
        'https://github.com/felixonmars/dnsmasq-china-list/raw/master/apple.china.conf'
        'https://github.com/felixonmars/dnsmasq-china-list/raw/master/google.china.conf'
        'https://github.com/felixonmars/dnsmasq-china-list/raw/master/LICENSE')
sha256sums=('SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP')

pkgver() {
    BASE_URL="https://api.github.com/repos/felixonmars/dnsmasq-china-list"
    COMMIT_COUNT=$(curl -sLI "$BASE_URL/commits?per_page=1" | sed -n '/^[Ll]ink:/ s/.*"next".*page=\([0-9]*\).*"last".*/\1/p')
    LAST_COMMIT=$(curl -sL "$BASE_URL/git/refs/heads/master" | grep 'sha' | cut -d '"' -f 4 | cut -c 1-10)
    printf "r%s.%s" "$COMMIT_COUNT" "$LAST_COMMIT"
}

build() {
    DEDICATED_SERVER='223.5.5.5'
    make SERVER="$DEDICATED_SERVER" dnscrypt-proxy
}

package() {
    install -Dm644 dnscrypt-proxy-forwarding-rules.txt "$pkgdir/etc/dnscrypt-proxy/chinalist.txt"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/dnscrypt-proxy-china-list-git/LICENSE"
}