summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a7d266cae5e5dcb925e6e18fcebf3d78d6226ba8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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"
}