summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ae8cd98830531bc144cf0f03a615c79d65c32d11 (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
43
44
45
46
47
# Maintainer: dakataca <🐬danieldakataca@gmail.com>
pkgname=unbound-roothints
pkgrel=1
pkgver=1.0.0.r22
pkgdesc="Automatically manages the root hint file /etc/unbound/root.hints"
arch=('x86_64')
url="https://codeberg.org/dakataca/unbound-roothints"
license=('MIT')
depends=('unbound')
makedepends=('git')
source=("$pkgname::git+$url.git")
install=$pkgname.install
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/$pkgname"
    echo "1.0.0.r$(git rev-list --count HEAD)"
}

package() {
    cd "$srcdir/$pkgname"

    # Instalar los Bash Scripts.
    install -Dm 755 "Bash Scripts/"* -t "$pkgdir/usr/local/bin/"

    # Instalar las unidades Systemd.
    install -Dm 644 "Systemd Units/"* -t "$pkgdir/etc/systemd/system/"

    # Crear directorio de temporizadores personalizados e instalar enlace simbólico del temporizador "roothints.timer"
    install -d "$pkgdir/etc/systemd/system/timers.target.wants/"
    cp -a roothints.timer "$pkgdir/etc/systemd/system/timers.target.wants/"
}

## Update:
# updpkgsums
# makepkg -si
# makepkg --printsrcinfo > .SRCINFO
# git clean -dfx

## References
# Repository: https://codeberg.org/dakataca/unbound-roothints
# WebHelp: https://www.gnu.org/software/bash/manual/html_node/Process-Substitution.html

## Clean:
# rm -rf src/

# 👤 Autor: https://t.me/dakataca 💻 🐬 #