blob: 9d4b662504fa21ddafe192b2a502b5d20947fa0c (
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
35
36
37
38
39
40
41
42
|
# Maintainer: Byeonghoon Yoo <bh322yoo@gmail.com>
_repo_name=whitelist
_pkgname=pi-hole-whitelist
pkgname=$_pkgname-git
pkgver=r308.46289a5
pkgrel=1
pkgdesc='A simple tool to add commonly white listed domains to your Pi-Hole setup.'
arch=('any')
url="https://github.com/anudeepND/${_repo_name}"
license=('MIT')
depends=('curl' 'python')
makedepends=('git')
optdepends=(
'pi-hole-server'
'pi-hole-standalone'
)
source=(
"${_repo_name}::${url//https/git}"
"$_pkgname.service"
"$_pkgname.timer"
)
md5sums=(
'SKIP'
'e9ebc56632d64b8f0f01aa531dd95c7d'
'b42a22ac0cea2fc7c9713eaaf3e794d7'
)
pkgver() {
cd "$_repo_name"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
install -Dm744 "$_repo_name/scripts/whitelist.py" "$pkgdir/opt/$_pkgname/whitelist.py"
install -Dm644 "$_pkgname.service" "$pkgdir/usr/lib/systemd/system/$_pkgname.service"
install -Dm644 "$_pkgname.timer" "$pkgdir/usr/lib/systemd/system/$_pkgname.timer"
install -Dm644 "$_repo_name/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim:set ts=2 sw=2 et:
|