void-packages/srcpkgs/python-simplejson/template

29 lines
841 B
Bash

# Template file for 'python-simplejson'
pkgname=python-simplejson
version=3.14.0
revision=1
wrksrc="simplejson-${version}"
build_style=python-module
pycompile_module="simplejson"
hostmakedepends="python-setuptools python3-setuptools"
makedepends="python-devel python3-devel"
short_desc="Simple, fast, extensible JSON encoder/decoder for Python2"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="MIT, AFL-2.1"
homepage="https://github.com/simplejson/simplejson"
distfiles="${PYPI_SITE}/s/simplejson/simplejson-${version}.tar.gz"
checksum=1ebbd84c2d7512f7ba65df0b9cc3cbc1bbd6ef9eab39fc9389dfe7e3681f7bd2
post_install() {
vlicense LICENSE.txt LICENSE
}
python3-simplejson_package() {
pycompile_module="simplejson"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE
}
}