diff options
author | 1sixth | 2020-10-10 11:38:22 +0800 |
---|---|---|
committer | 1sixth | 2020-10-10 11:38:22 +0800 |
commit | 22178794b220b582d39a58b2b8fc5ea597cdf35c (patch) | |
tree | dc44392ddd6fb05d5e289cd807089560bc2d4b00 | |
download | aur-anti-ad-smartdns-git.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ab162314ed4a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = anti-ad-smartdns-git + pkgdesc = Configuration for adblocking via SmartDNS + pkgver = 0.936.d4edec4 + pkgrel = 1 + url = https://github.com/privacy-protection-tools/anti-AD + arch = any + license = MIT + makedepends = git + source = git+https://github.com/privacy-protection-tools/anti-AD.git + md5sums = SKIP + +pkgname = anti-ad-smartdns-git + pkgdesc = Configuration for adblocking via SmartDNS + depends = smartdns + +pkgname = anti-ad-dnsmasq-git + pkgdesc = Configuration for adblocking via Dnsmasq + depends = dnsmasq + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a7d266cae5e5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: 1sixth <i@shinta.ro> + +pkgbase=anti-ad-smartdns-git +pkgname=(anti-ad-smartdns-git anti-ad-dnsmasq-git) +pkgver=0.936.d4edec4 +pkgrel=1 +pkgdesc="Configuration for adblocking via SmartDNS" +arch=('any') +url="https://github.com/privacy-protection-tools/anti-AD" +license=('MIT') +makedepends=('git') +source=("git+https://github.com/privacy-protection-tools/anti-AD.git") +md5sums=('SKIP') + +pkgver(){ + cd anti-AD + echo 0.$(git rev-list --count HEAD).$(git rev-parse --short HEAD) +} +package_anti-ad-smartdns-git() { + pkgdesc="Configuration for adblocking via SmartDNS" + depends=('smartdns') + install -Dm644 anti-AD/anti-ad-smartdns.conf "$pkgdir/etc/smartdns/anti-ad-smartdns.conf" +} + +package_anti-ad-dnsmasq-git() { + pkgdesc="Configuration for adblocking via Dnsmasq" + depends=('dnsmasq') + install -Dm644 anti-AD/adblock-for-dnsmasq.conf "$pkgdir/etc/dnsmasq.d/adblock-for-dnsmasq.conf" +} |