2022-06-22 17:48:05 +00:00
|
|
|
# Maintainer: Anthony Wang <ta180m@proton.me>
|
2022-05-20 16:05:57 +00:00
|
|
|
_pkgname=porkbun-dynamic-dns-python
|
|
|
|
pkgname=${_pkgname}-git
|
|
|
|
pkgver=r16.aca7407
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Our minimalist dynamic DNS client written in Python"
|
|
|
|
arch=(any)
|
2022-06-22 17:48:05 +00:00
|
|
|
url="https://git.exozy.me/Ta180m/porkbun-dynamic-dns-python"
|
2022-05-20 16:05:57 +00:00
|
|
|
license=('MIT')
|
|
|
|
depends=('python' 'python-requests')
|
|
|
|
backup=('etc/porkbun-ddns.json')
|
|
|
|
source=("${_pkgname}::git+${url}.git")
|
|
|
|
sha256sums=(SKIP)
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "$_pkgname"
|
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$_pkgname"
|
|
|
|
install -vDm755 porkbun-ddns.py "$pkgdir/usr/bin/porkbun-ddns"
|
|
|
|
install -vDm600 config.json.example "$pkgdir/etc/porkbun-ddns.json"
|
|
|
|
install -vDm644 systemd.service "$pkgdir/usr/lib/systemd/system/porkbun-ddns.service"
|
|
|
|
install -vDm644 systemd.timer "$pkgdir/usr/lib/systemd/system/porkbun-ddns.timer"
|
|
|
|
}
|