aboutsummaryrefslogblamecommitdiffstats
path: root/community/py3-augeas/APKBUILD
blob: 58e0d97e842e398f9b7b7dd34d4101b223d107be (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                           
                  
                      

            


                                                
                           

                                      


                                                                                                         

                                    


                                                             
         
                              

 

                           


                              
           
                                                               
                                                            
 
 

                                                                                                                                                                        
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-augeas
_pkgname=python-augeas
pkgver=1.1.0
pkgrel=0
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"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/test
}

sha512sums="34e4e98219b9146ef843d94c2e854e951a9b7e81409e603e77e7defdbb8765c013a2c869a4f5db2244352ca35656e18667a0210dd24099cb3e4552a04b23aef8  python-augeas-1.1.0.tar.gz
b345a2e060fbdfbcfa5206fb69998708ff56b98831318fa3b80569b6aeadf6e18d78e23ee8afa8db986e8b708550b2ec1d3e54c7c88887a4775d9ddff85c85a4  dlopen-libc-explicitly.patch"