2009-11-30 22:05:28 +01:00
|
|
|
# Template file for 'python-urwid'
|
|
|
|
pkgname=python-urwid
|
2014-08-01 20:01:01 +02:00
|
|
|
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"
|
2014-01-01 16:10:11 +01:00
|
|
|
pycompile_module="urwid"
|
2014-08-01 20:01:01 +02:00
|
|
|
short_desc="Console user interface library for Python2"
|
2009-11-30 22:05:28 +01:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2014-08-01 20:01:01 +02:00
|
|
|
homepage="http://urwid.org/"
|
2012-07-14 09:56:26 +02:00
|
|
|
license="LGPL-2.1"
|
2014-08-01 20:01:01 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|