mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-ansi2html
|
|
_pkgname=ansi2html
|
|
pkgver=1.6.0
|
|
pkgrel=1
|
|
pkgdesc="Convert text with ANSI color codes to HTML"
|
|
url="https://github.com/ralphbean/ansi2html"
|
|
arch="noarch"
|
|
license="LGPL-3.0-or-later"
|
|
depends="python3 py3-six py3-setuptools"
|
|
makedepends="python3-dev"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
replaces="py-ansi2html" # for backwards compatibility
|
|
provides="py-ansi2html=$pkgver-r$pkgrel" # for backwards compatibility
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
sed -e '/setuptools_scm/d' \
|
|
-e "s/use_scm_version=.*/version='$pkgver',/" \
|
|
-i setup.py
|
|
sed -e '/setuptools_scm/d' -i setup.cfg
|
|
}
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="35e5fb6cee96fe41a658c005734a58b08bc05e8ad5903ad18684c316bdad351a70c534b4162416225bc2ca774d01b4ac1bb8a8dad3170d0738aa7b3daf46b3c0 ansi2html-1.6.0.tar.gz"
|