void-packages/srcpkgs/python-urwid/template

32 lines
859 B
Plaintext
Raw Normal View History

# Template file for 'python-urwid'
pkgname=python-urwid
version=1.2.1
revision=1
wrksrc="${pkgname#*-}-${version}"
build_style="python-module"
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
makedepends="python-devel python3.4-devel"
depends="python"
pycompile_module="urwid"
short_desc="Console user interface library for Python2"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://urwid.org/"
2012-07-14 09:56:26 +02:00
license="LGPL-2.1"
distfiles="https://pypi.python.org/packages/source/u/urwid/urwid-${version}.tar.gz"
checksum=9b9b5dabb7df6c0f12e84feed488f9a9ddd5c2d66d1b7c7c087055720b87c68c
pre_build() {
sed -i '/^#!\//, 1d' urwid/*.py
}
python3.4-urwid_package() {
depends="python3.4"
pycompile_version="3.4"
pycompile_module="urwid"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
}
}