38 lines
1 KiB
Bash
38 lines
1 KiB
Bash
# Template file for 'python-serpent'
|
|
pkgname=python-serpent
|
|
version=1.22
|
|
revision=1
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
noarch=yes
|
|
build_style=python-module
|
|
pycompile_module="serpent.py"
|
|
hostmakedepends="python-setuptools python3-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=a67ca57082b00ea734854d751ab19e8a49d4ea0d4be7194985da35863fb9fb19
|
|
|
|
post_install() {
|
|
head -n 4 setup.py | tail -n 3 > LICENSE
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-serpent_package() {
|
|
noarch=yes
|
|
depends="python3"
|
|
pycompile="serpent.py"
|
|
replaces="python3.4-serpent>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|
|
python3.4-serpent_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-serpent>=${version}_${revision}"
|
|
}
|