summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 43984206135af954ee98b55f59fb3f50ecb7de63 (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
34
35
36
# Maintainer: Taijian <taijian@posteo.de>
# Contributor: Malstrond <malstrond@gmail.com>
# Contributor: xduugu

pkgname=dyndnsc-git
_pkgbase=python-dyndnsc
pkgver=0.6.0.r2.g539eb97
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' 'python-json-logging')
makedepends=('git' 'python-pip' 'python-wheel')
provides=('dyndnsc')
conflicts=('dyndnsc')
source=("git+https://github.com/infothrill/$_pkgbase.git"
        'dyndnsc.service')
sha256sums=('SKIP'
            '06e5088696dd2cd6e9af9de51bf0c88e94adadd582cd66620bc260caaf56059c')

build() {
    cd "$_pkgbase"
    python setup.py build
}

package() {
    cd "$_pkgbase"
    python setup.py install --root="$pkgdir" --optimize=1 --skip-build

    # 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"
}