summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1b49d41b9ddcdb11a9f215d063ebdaa280c3991e (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
37
38
39
40
41
42
# Maintainer: HLFH <gaspard@dhautefeuille.eu>

pkgname=python-octodns-git
_pkgname=octodns
pkgdesc="Tools for managing DNS across multiple providers"
url="https://github.com/octodns/octodns"
provides=("python-octodns")
conflicts=("python-octodns")
pkgver=1.0.0rc1.r0.g7b2a1d4
pkgrel=2
arch=("any")
license=("MIT")
makedepends=("python-setuptools")
depends=(
    "python"
    "python-dnspython"
    "python-yaml"
    "python-requests"
    "python-natsort"
    "python-pycountry"
    "python-pycountry-convert"
    "python-dateutil"
    "python-fqdn"
)
source=("${pkgname}::git+$url")
b2sums=('SKIP')

pkgver() {
  cd "${pkgname}"
  git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//;'
}

build() {
  cd "${srcdir}/$pkgname"
  python setup.py build
}

package() {
  cd "${srcdir}/$pkgname"
  python setup.py install --root=${pkgdir} --optimize=1
  install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}