aboutsummaryrefslogblamecommitdiffstats
path: root/testing/py3-html2text/APKBUILD
blob: 99d7046cc13645298dc76af4e0e7e7be68bb8adc (plain) (tree)
1
2
3
4
5
6
7
8

                                                 


                     
        
                                                 
                                                  


                                          

                            
















                                                                                             
                                                                                                                                                                         
# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-html2text
_pyname=html2text
pkgver=2020.1.16
pkgrel=1
pkgdesc="Convert HTML to Markdown-formatted text"
options="!check" # TODO tests fail for some reason
url="https://github.com/Alir3z4/html2text"
arch="noarch"
license="GPL-3.0-only"
depends="python3"
makedepends="py3-setuptools"
subpackages="$pkgname-doc"
source="$_pyname-$pkgver.tar.gz::https://github.com/Alir3z4/html2text/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

doc() {
	cd "$builddir"
	mkdir -p "$subpkgdir/usr/share/doc/$_pyname"
	mv docs/* "$subpkgdir/usr/share/doc/$_pyname"
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="95d3f560932a68e5cfe4f7d1f87cb7e4235efe57251813d148c7a19a5202ff3dc3ea5c047884803e10b64e7b7e1e2ef70aec87e5eb5f15ea89aeb542eaa9e053  html2text-2020.1.16.tar.gz"