summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9ac078b2b6f722ff02fae9d50efd9d97e6837cb3 (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
# Maintainer: Ricardo Band <email@ricardo.band>
pkgname=desec-dns-cli
_name=${pkgname//-/_}
pkgver=0.0.3
pkgrel=1
pkgdesc="CLI tool for the desec.io DNS service"
arch=("any")
url=https://gitlab.com/XenGi/desec-dns-cli
license=("MIT")
depends=("python>=3.6" "python-click" "python-desec-dns-api")
makedepends=("python-setuptools")
#checkdepends=("python-pytest" "python-pytest-xdist" "python-pytest-flake8")
source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$_name-$pkgver.tar.gz")
sha256sums=('8c472b8bd1c6adb82e93378a41c4ddf7a536649d646358319f78e4e26e464d1b')

#check() {
#    cd "$srcdir/$_name-$pkgver"
#    pytest --flake8 tests/
#}

build() {
    cd "$srcdir/$_name-$pkgver"
    python setup.py build
}

package() {
    cd "$srcdir/$_name-$pkgver"
    python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}