summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c5b3b188f2b488adb613b8116901d9b581c0ac47 (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
# Maintainer: Tomas Krizek <tomas.krizek@nic.cz>

pkgname=python-dnspython-git
pkgver=2.0.0rc2
pkgrel=1
pkgdesc="A DNS toolkit for Python"
arch=('any')
url="http://www.dnspython.org"
license=('ISC')
makedepends=(
    'python-setuptools'
    # 'cython'  # uncomment dep & build option for cython optimization speedup
)
depends=('python')
optdepends=(
    'python-idna: support for update IDNA 2008'
    'python-cryptography: DNSSEC support'
    'python-requests: DNS-over-HTTPS support'
    'python-requests-toolbelt: DNS-over-HTTPS support'
    'python-trio: async I/O backend'
    'python-curio: async I/O backend'
    'python-sniffio: async I/O'
)
source=("https://github.com/rthalley/dnspython/archive/v${pkgver}.tar.gz")
sha256sums=('c588b132eefaf7d0892a3b0aa863b990264f08811ae4b0d4d6e6b62086c3de18')

build() {
    cd "${srcdir}"/dnspython-${pkgver}

    python setup.py build  # --cython-compile
}

package() {
    cd "${srcdir}"/dnspython-${pkgver}

    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}