34 lines
876 B
Bash
34 lines
876 B
Bash
# Template file for 'python-serpent'
|
|
pkgname=python-serpent
|
|
version=1.13
|
|
revision=1
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
noarch=yes
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
pycompile_module="serpent.py"
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
depends="python"
|
|
short_desc="Serialization library based on ast.literal_eval (Python2)"
|
|
maintainer="pulux <pulux@pf4sh.de>"
|
|
license="MIT"
|
|
homepage="https://pypi.python.org/pypi/serpent"
|
|
distfiles="${PYPI_SITE}/s/serpent/serpent-${version}.tar.gz"
|
|
checksum=32941d185e28249a7babc754ab7df9c9808e1d5d3cdbf3c461aba9790e710a9e
|
|
|
|
post_install() {
|
|
head -n 4 setup.py | tail -n 3 > LICENSE
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3.4-serpent_package() {
|
|
noarch=yes
|
|
depends="python3.4"
|
|
pycompile_version="3.4"
|
|
pycompile="serpent.py"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3.4
|
|
}
|
|
}
|