summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8aedd806627e44816be269f10246c132bb543cbf (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
# Maintainer: KUMAX <kumax2048@pm.me>

_name=ddns
pkgname=python-ddns
pkgrel=2
pkgver=2.12.0
pkgdesc="Automatically update DNS records to dynamic local IP."
url=https://pypi.org/project/ddns
arch=('any')
license=("MIT")
provides=("ddns")
conflicts=("ddns" "newfuture-ddns-bin" "python-dnspython")
makedepends=('python-pip' 'python-installer')
source=(
	"https://files.pythonhosted.org/packages/py2.py3/${_name::1}/$_name/${_name//-/_}-$pkgver-py2.py3-none-any.whl"
	"newfuture_ddns.service"
	"newfuture_ddns.timer"
	"config.json"
)
sha256sums=('d87f270e4215c8a2102c4f5421664fc9838c97b66ab4cfed3e9869a090fe64a2'
            '11a427cc3d3a8a4c5e1bbcaba8c94dd9265a6b4c4f53f16d694d83ff92514078'
            '1e084c5349449289129006b21294699ec34122050ada92be81e682631a60f159'
            'aab0eb4c02ab5fa20f1b6c2f66542358ee18ebbb0a60ec2c60e6371844c48d73')
makedepends=(python-build python-installer python-wheel)
install=$pkgname.install
backup=("etc/ddns/config.json")

package() {
	python -m installer --destdir="$pkgdir" *.whl
    install -Dm644 newfuture_ddns.service  "${pkgdir}/usr/lib/systemd/system/newfuture_ddns.service"
    install -Dm644 newfuture_ddns.timer "${pkgdir}/usr/lib/systemd/system/newfuture_ddns.timer";
    install -Dm644 config.json "${pkgdir}/etc/ddns/config.json";
}