void-packages/srcpkgs/python-serpent/template

32 lines
794 B
Bash

# Template file for 'python-serpent'
pkgname=python-serpent
version=1.28
revision=2
archs=noarch
wrksrc="${pkgname#*-}-${version}"
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.org/project/serpent/"
distfiles="${PYPI_SITE}/s/serpent/serpent-${version}.tar.gz"
checksum=f306336ca09aa38e526f3b03cab58eb7e45af09981267233167bcf3bfd6436ab
post_install() {
vlicense LICENSE
}
python3-serpent_package() {
archs=noarch
depends="python3"
pycompile="serpent.py"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}