void-packages/srcpkgs/python-pyte/template

31 lines
795 B
Bash

# Template file for 'python-pyte'
pkgname=python-pyte
version=0.7.0
revision=1
noarch=yes
wrksrc="pyte-${version}"
build_style=python-module
pycompile_module="pyte"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-wcwidth"
short_desc="Simple Python2 VTXXX-compatible linux terminal emulator"
maintainer="Sir_Boops <admin@boops.me>"
license="LGPL-3"
homepage="https://github.com/selectel/pyte"
distfiles="https://github.com/selectel/pyte/archive/${version}.tar.gz"
checksum=3d0b6909a68fac1856f325c7d0d7434e13ee2ab91ca09fcc762ee03a64e5fdee
pre_build() {
sed -i '/setup_requires/d' setup.py
}
python3-pyte_package() {
noarch=yes
pycompile_module="pyte"
short_desc="${short_desc/Python2/Python3}"
depends="python3-wcwidth"
pkg_install() {
vmove usr/lib/python3*
}
}