blob: 10a9667f25aaf51b4a217ced4f1e0f2d29267894 (
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
|
# Maintainer: Neboer <rubinposter@gmail.com>
pkgname=dns2hostssyncer-git
pkgver=2.3+3+g98f178f
pkgrel=3
pkgdesc="A tool to sync DNS records with the hosts file using PowerDNS Admin API"
arch=('x86_64')
url="https://github.com/Neboer/DNS2HostsSyncer"
license=('MIT')
depends=('nlohmann-json' 'spdlog' 'argparse' 'curl')
makedepends=('cmake')
provides=("dns2hostssyncer")
conflicts=("dns2hostssyncer")
_gitname="DNS2HostsSyncer"
source=("$_gitname::git+$url")
sha256sums=(SKIP)
backup=('etc/d2hs/d2hs.json')
pkgver() {
cd "$srcdir/$_gitname"
local v
v="$(git describe --tags)"
v="${v#v}"
printf %s "${v//-/+}"
}
build() {
cd "$srcdir/$_gitname"
cmake -Bbuild --preset linux-native
cmake --build build -j $(nproc)
}
package() {
cd "$srcdir/$_gitname"
DESTDIR="$pkgdir" cmake --install build
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|