34 lines
1013 B
Bash
34 lines
1013 B
Bash
# Template file for 'python-simplejson'
|
|
pkgname=python-simplejson
|
|
version=3.17.0
|
|
revision=2
|
|
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="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT, AFL-2.1"
|
|
homepage="https://github.com/simplejson/simplejson"
|
|
changelog="https://raw.githubusercontent.com/simplejson/simplejson/master/CHANGES.txt"
|
|
distfiles="https://github.com/simplejson/simplejson/releases/download/v${version}/simplejson-${version}.tar.gz"
|
|
checksum=2b4b2b738b3b99819a17feaf118265d0753d5536049ea570b3c43b51c4701e81
|
|
|
|
do_check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
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
|
|
}
|
|
}
|