diff options
author | Felix Yan | 2020-03-07 19:58:15 +0800 |
---|---|---|
committer | Felix Yan | 2020-03-07 19:58:15 +0800 |
commit | 008cf381ae297b955ab266d3cd4f77c349d7ae96 (patch) | |
tree | 661985e813900676b54fad95d62df95ee5bc69be | |
parent | 976df70e961e7e369bf416316a06ecbda5725c1b (diff) | |
download | aur-dnsmasq-china-list-git.tar.gz |
add a smartdns subpackage
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 42 |
2 files changed, 36 insertions, 17 deletions
@@ -1,16 +1,19 @@ -# Generated by mksrcinfo v8 -# Tue May 29 14:57:56 UTC 2018 pkgbase = dnsmasq-china-list-git pkgdesc = Configuration for hot China domains to accelerate via Dnsmasq - pkgver = 0.41747.cf60b950d + pkgver = 0.96984.ab47aca5b5 pkgrel = 1 url = https://github.com/felixonmars/dnsmasq-china-list arch = any license = WTFPL makedepends = git - depends = dnsmasq source = git+https://github.com/felixonmars/dnsmasq-china-list.git md5sums = SKIP pkgname = dnsmasq-china-list-git + pkgdesc = Configuration for hot China domains to accelerate via Dnsmasq + depends = dnsmasq + +pkgname = smartdns-china-list-git + pkgdesc = Configuration for hot China domains to accelerate via smartdns + depends = smartdns @@ -1,29 +1,45 @@ # Maintainer: Felix Yan <felixonmars@gmail.com> -_pkgname=dnsmasq-china-list -pkgname=$_pkgname-git -pkgver=0.41747.cf60b950d +pkgbase=dnsmasq-china-list-git +pkgname=(dnsmasq-china-list-git smartdns-china-list-git) +pkgver=0.96984.ab47aca5b5 pkgrel=1 pkgdesc="Configuration for hot China domains to accelerate via Dnsmasq" arch=('any') url="https://github.com/felixonmars/dnsmasq-china-list" -license=('WTFPL') -depends=('dnsmasq') +license=('WTFPL') makedepends=('git') -source=("git+https://github.com/felixonmars/${_pkgname}.git") +source=("git+https://github.com/felixonmars/dnsmasq-china-list.git") md5sums=('SKIP') pkgver() { - cd "$srcdir/$_pkgname" + cd dnsmasq-china-list echo 0.$(git rev-list --count HEAD).$(git rev-parse --short HEAD) } -package() { - install -Dm644 "$srcdir/$_pkgname/accelerated-domains.china.conf" "$pkgdir/etc/dnsmasq.d/accelerated-domains.china.conf" - install -Dm644 "$srcdir/$_pkgname/apple.china.conf" "$pkgdir/etc/dnsmasq.d/apple.china.conf" - install -Dm644 "$srcdir/$_pkgname/google.china.conf" "$pkgdir/etc/dnsmasq.d/google.china.conf" - install -Dm644 "$srcdir/$_pkgname/bogus-nxdomain.china.conf" "$pkgdir/etc/dnsmasq.d/bogus-nxdomain.china.conf" - install -Dm755 "$srcdir/$_pkgname/dnsmasq-update-china-list" "$pkgdir/usr/bin/dnsmasq-update-china-list" +build() { + cd dnsmasq-china-list + make smartdns SERVER=china +} + +package_dnsmasq-china-list-git() { + pkgdesc="Configuration for hot China domains to accelerate via Dnsmasq" + depends=('dnsmasq') + + install -Dm644 dnsmasq-china-list/accelerated-domains.china.conf "$pkgdir/etc/dnsmasq.d/accelerated-domains.china.conf" + install -Dm644 dnsmasq-china-list/apple.china.conf "$pkgdir/etc/dnsmasq.d/apple.china.conf" + install -Dm644 dnsmasq-china-list/google.china.conf "$pkgdir/etc/dnsmasq.d/google.china.conf" + install -Dm644 dnsmasq-china-list/bogus-nxdomain.china.conf "$pkgdir/etc/dnsmasq.d/bogus-nxdomain.china.conf" + install -Dm755 dnsmasq-china-list/dnsmasq-update-china-list "$pkgdir/usr/bin/dnsmasq-update-china-list" +} + +package_smartdns-china-list-git() { + pkgdesc="Configuration for hot China domains to accelerate via smartdns" + depends=('smartdns') + + install -Dm644 dnsmasq-china-list/accelerated-domains.china.smartdns.conf "$pkgdir/etc/smartdns/accelerated-domains.china.smartdns.conf" + install -Dm644 dnsmasq-china-list/apple.china.smartdns.conf "$pkgdir/etc/smartdns/apple.china.smartdns.conf" + install -Dm644 dnsmasq-china-list/google.china.smartdns.conf "$pkgdir/etc/smartdns/google.china.smartdns.conf" } # vim:set ts=2 sw=2 et: |