void-packages/srcpkgs/python-serpent/template

32 lines
813 B
Bash

# Template file for 'python-serpent'
pkgname=python-serpent
version=1.25
revision=1
noarch=yes
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=264a028e059c1b557701ae7c567cdab330dbd228ff924489343efcb39bd828a0
post_install() {
head -n 4 setup.py | tail -n 3 > LICENSE
vlicense LICENSE
}
python3-serpent_package() {
noarch=yes
depends="python3"
pycompile="serpent.py"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}