aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-augeas/APKBUILD
blob: 5446adcb9b9f715151dd5d2d423d362675928aa7 (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-augeas
_pkgname=python-augeas
pkgver=1.0.3
pkgrel=4
pkgdesc="Pure python bindings for augeas"
url="https://pypi.python.org/pypi/python-augeas"
arch="noarch"
license="LGPL-2.1-or-later"
depends="augeas-libs py3-cffi python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
	dlopen-libc-explicitly.patch
	"
builddir="$srcdir"/$_pkgname-$pkgver

replaces=py-augeas # Backwards compatibility
provides=py-augeas=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	cd "$builddir"/test
	python3 test_augeas.py
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="737b41e7bb438d80da75b55714c3f0b1706a4b2cacddd20fadf855bc3044e532f4079319b3775032e6f6009cf7f282af33fdf583332772b443a6c2d4925639fa  python-augeas-1.0.3.tar.gz
938e1a28d70c8ffbf62fd2936a57276603487608fbb3e23bf3a59a4f655e7d875ad51e6506acbddf4eea27a433fe3c9c35da3e00be04c8c866a5a966cdf3b161  dlopen-libc-explicitly.patch"