summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 64247cb660d3c415fbe81431036076bff52ad8d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: Caio Alonso <caio@caioalonso.com>

pkgname=godns-bin
pkgver=3.1.6
pkgrel=1
pkgdesc="A dynamic DNS client tool, supports AliDNS, Cloudflare, Google Domains, DNSPod, HE.net & DuckDNS, written in Go"
arch=('x86_64')
url='https://github.com/timothyye/godns'
license=('Apache')
provides=('godns')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/TimothyYe/godns/releases/download/v${pkgver}/godns_${pkgver}_linux_amd64.tar.gz"
	"godns.json::https://raw.githubusercontent.com/TimothyYe/godns/v${pkgver}/configs/config_sample.json"
	"godns.service")
sha256sums=('830d12cf299acc38c19eb288abd65158bf8537a1b47a44b06053830f544966ad'
	'4fa9de0eb97f6cdb0198654c60643acaa4c637637af5c0a05c9b6acd6ddfaaf7'
	'e3a93f1a4a64e6753ea36d7ee4cccdc209f4449251c6a1e6cf19b38f62bc6127')

package() {
	install -Dm755 "${srcdir}"/godns "${pkgdir}/usr/bin/godns"
	install -Dm644 "${srcdir}"/godns.json "${pkgdir}/etc/conf.d/godns.json"
	install -Dm644 "${srcdir}"/godns.service "${pkgdir}/lib/systemd/system/godns.service"
}