# Maintainer: Héctor Molinero Fernández # Contributor: Erazem Kokot pkgname='hblock' pkgver='3.4.0' pkgrel='1' pkgdesc='Adblocker that creates a hosts file from multiple sources' arch=('any') url='https://github.com/hectorm/hblock' license=('MIT') depends=('curl') source=("https://github.com/hectorm/${pkgname}/archive/v${pkgver}.tar.gz") sha256sums=('762dbe5f2a0ea84078b194190f4fb51b9fe3e6ef043c1899fdda6a083328225f') check() { cd -- "${pkgname:?}-${pkgver:?}" make test } package() { cd -- "${pkgname:?}-${pkgver:?}" make DESTDIR="${pkgdir:?}" prefix="/usr" install }