summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 03ae67c1add595f9f1aba45537a8681d1479fafd (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
# Maintainer: Jean Lucas <jean@4ray.co>

pkgname=unbound-block-hosts
pkgver=0+r21+87966ee
_commit=87966ee571cdeb78b89d16aac48d8fa2935ad6b2
pkgrel=1
pkgdesc='Script to convert an ad-blocking hosts file into Unbound local-data'
arch=(any)
url=https://github.com/gbxyz/unbound-block-hosts
license=(GPL PerlArtistic)
depends=(perl-lwp-protocol-https)
makedepends=(git)
source=(git+$url#commit=$_commit)
sha512sums=('SKIP')

pkgver() {
  cd $pkgname
  printf 0+r%s+%s $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
}

package() {
  cd $pkgname
  install -D unbound-block-hosts -t "$pkgdir"/usr/bin
  install -Dm 644 README.md -t "$pkgdir"/usr/share/doc/unbound-block-hosts
}