diff options
author | Taijian | 2020-12-12 14:39:20 +0100 |
---|---|---|
committer | Taijian | 2020-12-12 14:39:20 +0100 |
commit | 210aef4d5aa4e0557f2e79f367b3b0c46a01fb4b (patch) | |
tree | c40679afa0090f1701c6020b06a9dd079256a33d /PKGBUILD | |
download | aur-210aef4d5aa4e0557f2e79f367b3b0c46a01fb4b.tar.gz |
Initial upload, bring changes since 0.51 online
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1b5dbf905859 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Taijian <taijian@posteo.de> +# Contributor: Malstrond <malstrond@gmail.com> +# Contributor: xduugu + +pkgname=dyndnsc-git +_pkgbase=python-dyndnsc +pkgver=0.5.1.r24.g59ef5f9 +pkgrel=1 +pkgdesc="Dynamic DNS client with support for multiple protocols and services. Compatible with IPv6 dual stack. Git version" +arch=('any') +url="https://pypi.org/project/dyndnsc" +license=('MIT') +depends=('python-requests' 'python-setuptools' 'python-netifaces' 'python-dnspython' 'python-daemonocle') +makedepends=('git') +provides=('dyndnsc') +conflicts=('dyndnsc') +source=("git+https://github.com/infothrill/python-dyndnsc.git" + 'dyndnsc.service') +md5sums=('SKIP' + '530304e7ce3c6463c0d0d053949ad5a9') + +pkgver() { + cd "$_pkgbase" + git describe --long --tags | sed 's/-/.r/;s/-/./' +} + +build() { + cd "$_pkgbase" + python setup.py build +} + +package() { + cd "$_pkgbase" + python setup.py install --root="$pkgdir" --optimize=1 + + # install systemd service file + install -Dm644 "$srcdir/dyndnsc.service" "$pkgdir/usr/lib/systemd/system/dyndnsc.service" + + # install license file + install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |