# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cloudflare-ddns
pkgver=1.4.0
pkgrel=3
pkgdesc="DDNS script to sync public IP address to CloudFlare dns records"
options="!check" # No testsuite
url="https://github.com/undefinedplayer/cloudflare-ddns"
arch="noarch"
license="MIT"
depends="py3-requests"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/undefinedplayer/cloudflare-ddns/archive/$pkgver.tar.gz"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
2c52153e0e4d44a504268474d1448d6729a11d457ca7d94599bd93baa4e2e0d08e96eebe4411119f2e1d6a464ddc9582470d8308afda71217bc4218afe42bef3  cloudflare-ddns-1.4.0.tar.gz
"
