35 lines
936 B
Bash
35 lines
936 B
Bash
# Template file for 'python-PyICU'
|
|
pkgname=python-PyICU
|
|
version=2.3.1
|
|
revision=2
|
|
wrksrc="PyICU-${version}"
|
|
build_style=python-module
|
|
pycompile_module="icu PyICU.py"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
makedepends="python-devel python3-devel icu-devel"
|
|
checkdepends="python3-pytest python3-six"
|
|
short_desc="Python extension wrapping the ICU C++ API (Python2)"
|
|
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
|
|
license="MIT"
|
|
homepage="https://github.com/ovalhub/pyicu"
|
|
changelog="https://raw.githubusercontent.com/ovalhub/pyicu/master/CHANGES"
|
|
distfiles="${PYPI_SITE}/P/PyICU/PyICU-${version}.tar.gz"
|
|
checksum=ddb2b453853b4c25db382bc5e8c4cde09b3f4696ef1e1494f8294e174f459cf4
|
|
|
|
do_check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-PyICU_package() {
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pycompile_module="icu PyICU.py"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|