# Maintainer: Twann _init_system=dinit _basename=tblock pkgname=${_basename}-${_init_system} pkgver=2.6.1 pkgrel=2 provides=("$_basename") pkgdesc="An anti-capitalist ad-blocker that uses the hosts file" url="https://tblock.codeberg.page" arch=("any") license=("GPL3") conflicts=("$_basename") makedepends=( "make" "gzip" "python>=3" "python-build" "python-installer" "python-setuptools" "python-wheel" ) depends=( "python-urllib3" "python-requests" "python-colorama" "${_init_system}" ) source=( "${pkgname}-${pkgver}.tar.gz::https://codeberg.org/tblock/tblock/archive/${pkgver}.tar.gz" "tblockd::https://codeberg.org/tblock/tblock/raw/commit/a324fd2424baf3f6208c40246ecbe9eaa4fa89b4/assets/services/dinit/tblockd" ) sha512sums=( "bebc8719086f9074e2e8098f911a31e30de9133f5ad66e502883d002a7365172ab266bc3ea6e1868ba0803a4a92bf8536e79f6f7dd13252f6f1e35d9b21cefc1" "036e85bafeb5c9c1a62340124576c48603138851cf6bd23e93913c404aa3bfc1b7beda23c6bbd7c714d069f8ba756dfb3af4c29accb45aacabe03732e714ddf7" ) backup=("etc/tblock.conf") build() { cd "$srcdir/$_basename" make } package() { install -Dm644 tblockd "$pkgdir/etc/dinit.d/tblockd" cd "$srcdir/$_basename" # Install the package make install-files install-python-module ROOT="$pkgdir" # Install the configuration file make install-config ROOT="$pkgdir" }