summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9c817ab793c3537ef754b7bd6264b409213cfe8f (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
30
31
32
33
34
# Maintainer: jynn <uaggz@student.kit.edu>
pkgname=dnsblock-git
pkgver=r391.f819511
pkgrel=1
pkgdesc="get a list of servers to block ads using your dns"
arch=('any')
url="https://github.com/jyn-n/dnsblock"
license=('GPL')
provides=('dnsblock')
conflicts=('dnsblock')
source=(git+https://github.com/jyn-n/dnsblock.git)
md5sums=('SKIP')

prepare() {
	cd "${srcdir}/dnsblock/files"
}

check() {
	cd "${srcdir}/dnsblock/files"
	make -k check
}

pkgver() {
	cd "${srcdir}/dnsblock"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "${srcdir}/dnsblock/files"
	mkdir -p $pkgdir/etc/dnsblock
	install -m 0644 blocklist $pkgdir/etc/dnsblock
	install -m 0644 dnsmasq $pkgdir/etc/dnsblock
}