python-jsonpointer: drop package

This commit is contained in:
Đoàn Trần Công Danh 2020-09-20 22:15:44 +07:00
parent 08b362c6e1
commit d2a17ea794
3 changed files with 19 additions and 35 deletions

View file

@ -1,34 +0,0 @@
# Template file for 'python-jsonpointer'
pkgname=python-jsonpointer
version=2.0
revision=2
archs=noarch
wrksrc="jsonpointer-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
pycompile_module="jsonpointer.py"
short_desc="Resolve JSON Pointers according to RFC 6901 (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/stefankoegl/python-json-pointer"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/j/jsonpointer/jsonpointer-${version}.tar.gz"
checksum=c192ba86648e05fdae4f08a17ec25180a9aef5008d973407b581798a83975362
alternatives="jsonpointer:jsonpointer:/usr/bin/jsonpointer2"
post_install() {
vlicense LICENSE.txt LICENSE
}
python3-jsonpointer_package() {
archs=noarch
depends="python3"
pycompile_module="jsonpointer.py"
short_desc="${short_desc/Python2/Python3}"
alternatives="jsonpointer:jsonpointer:/usr/bin/jsonpointer3"
pkg_install() {
vmove usr/bin/jsonpointer3
vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE
}
}

View file

@ -1 +0,0 @@
python-jsonpointer

View file

@ -0,0 +1,19 @@
# Template file for 'python3-jsonpointer'
pkgname=python3-jsonpointer
version=2.0
revision=3
wrksrc="jsonpointer-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3"
short_desc="Resolve JSON Pointers according to RFC 6901 (Python3)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/stefankoegl/python-json-pointer"
distfiles="${PYPI_SITE}/j/jsonpointer/jsonpointer-${version}.tar.gz"
checksum=c192ba86648e05fdae4f08a17ec25180a9aef5008d973407b581798a83975362
conflicts="python-jsonpointer>=0"
post_install() {
vlicense LICENSE.txt LICENSE
}