forked from graysky2/hosts-update
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKGBUILD
31 lines (29 loc) · 967 Bytes
/
PKGBUILD
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
# Contributor: graysky <graysky AT archlinux dot us>
# Contributor: schalox <schalox at gmail dot com>
_upstream=hosts_update
pkgname=hosts_update_schalox
pkgver=0.0.0
pkgrel=1
pkgdesc='Updates /etc/hosts with the mvps blocklist to prevent thousands of parasites, hijackers and unwanted adware/spyware/privacy websites from working.'
arch=('any')
depends=()
makedepends=('git')
license=('GPL')
provides=("$_upstream")
conflicts=("$_upstream")
replaces=("$_upstream")
url=("https://github.com/schalox/${_upstream}")
backup=('etc/hosts.local')
source=('git://github.com/schalox/hosts_update.git')
sha256sums=('SKIP')
pkgver() {
cd "$_upstream"
_tmpver="$(git log -n 1 --format="%cd" --date=short)"
echo "${_tmpver//-/}"
}
package() {
cd "$_upstream"
install -Dm755 "$_upstream" "$pkgdir/usr/bin/$_upstream"
install -Dm644 hosts.local "$pkgdir/etc/hosts.local"
install -Dm644 service "$pkgdir/usr/lib/systemd/system/${_upstream}.service"
}