31 lines
859 B
Text
31 lines
859 B
Text
# 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/"
|
|
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
|
|
}
|
|
}
|