blob: b7a3627d1734cae4e052600c79d72df0dfc8c287 (
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: Duvet05 <gonzalo.galvezc@pucp.edu.pe>
pkgname=web-blocker-git
pkgver=r20.1f5bd0e
pkgrel=1
pkgdesc="A tool to block unwanted websites using iptables"
arch=('any')
url="https://github.com/Duvet05/web-blocker"
license=('GPL3')
depends=('bash' 'iptables' 'python3' 'python-dnspython')
makedepends=('git')
source=("git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/web-blocker"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir/web-blocker"
install -Dm755 "web-blocker.sh" "$pkgdir/usr/bin/web-blocker"
install -Dm755 "web-blocker.py" "$pkgdir/usr/lib/web-blocker/web-blocker.py"
install -Dm644 "sites.conf" "$pkgdir/etc/web-blocker/sites.conf"
install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
}
|