blob: 3b1393ee2f9cb9b7a1ef3ef79e4035d09247f45a (
plain) (
blame)
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
|
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=py3-pyang
_pkgname=pyang
_p="${_pkgname#?}"
_p="${_pkgname%"$_p"}"
pkgver=2.5.3
pkgrel=0
pkgdesc="YANG tooling for Python"
url="https://pypi.org/project/pyang/"
arch="noarch"
license="ISC"
depends="python3 py3-lxml"
subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp"
source="https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/pyang-$pkgver"
build() {
python3 setup.py build
}
check() {
python3 setup.py test
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
bashcomp() {
pkgdesc="$pkgdesc (Bash completions)"
depends="py3-pyang"
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
mkdir "$subpkgdir"
mv "$pkgdir"/usr/etc "$subpkgdir"/
}
sha512sums="651f6f405018c3798a8ead870427eb6241b3466c6c29310e1d5c867599d8e9ed4898020316e397ad4d7c12abcf59b1a7a826dd2710546251b49973f6e8f32a9d pyang-2.5.3.tar.gz"
|