46 lines
1.3 KiB
Bash
46 lines
1.3 KiB
Bash
# Template file for 'python-dulwich'
|
|
pkgname=python-dulwich
|
|
version=0.19.10
|
|
revision=1
|
|
wrksrc="dulwich-${version}"
|
|
build_style=python-module
|
|
pycompile_module="dulwich"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
makedepends="python-devel python3-devel"
|
|
depends="python-urllib3"
|
|
checkdepends="python3-gevent python3-pbr python3-greenlet"
|
|
short_desc="Python2 implementation of the Git file formats and protocols"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="GPL-2.0-or-later, Apache-2.0"
|
|
homepage="https://www.dulwich.io/"
|
|
distfiles="${PYPI_SITE}/d/dulwich/dulwich-${version}.tar.gz"
|
|
checksum=0330787f28c5252f12040b9a1c0f5990f19f806c12b3d510ee7ea1fa53a6f3b4
|
|
|
|
alternatives="
|
|
dulwich:dul-receive-pack:/usr/bin/dul-receive-pack2
|
|
dulwich:dul-upload-pack:/usr/bin/dul-upload-pack2
|
|
dulwich:dulwich:/usr/bin/dulwich2"
|
|
|
|
do_check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
post_install() {
|
|
# remove extra docs
|
|
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/docs
|
|
}
|
|
|
|
python3-dulwich_package() {
|
|
alternatives="
|
|
dulwich:dul-receive-pack:/usr/bin/dul-receive-pack3
|
|
dulwich:dul-upload-pack:/usr/bin/dul-upload-pack3
|
|
dulwich:dulwich:/usr/bin/dulwich3"
|
|
pycompile_module="dulwich"
|
|
depends="python3-urllib3"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/bin/*3
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|