22 lines
732 B
Bash
22 lines
732 B
Bash
# Template file for 'python3-ansiwrap'
|
|
pkgname=python3-ansiwrap
|
|
version=0.8.4
|
|
revision=3
|
|
wrksrc=${pkgname#*-}-${version}
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3"
|
|
short_desc="Textwrap, but savvy to ANSI colors"
|
|
maintainer="travankor <travankor@tuta.io>"
|
|
license="Apache-2.0"
|
|
homepage="https://pypi.org/project/ansiwrap/"
|
|
distfiles="${PYPI_SITE}/a/ansiwrap/ansiwrap-${version}.zip"
|
|
checksum=ca0c740734cde59bf919f8ff2c386f74f9a369818cdc60efe94893d01ea8d9b7
|
|
|
|
pre_build() {
|
|
# Use python 3.6+'s built in version of textwrap, not a random library
|
|
vsed -i '/textwrap3/d' setup.py
|
|
vsed -i '0,/a_textwrap.*/s//import textwrap/' ansiwrap/core.py
|
|
vsed -i 's/a_textwrap/textwrap/' ansiwrap/core.py
|
|
}
|