45 lines
1.3 KiB
Bash
45 lines
1.3 KiB
Bash
# Template file for 'python-dulwich'
|
|
pkgname=python-dulwich
|
|
version=0.18.2
|
|
revision=1
|
|
wrksrc="dulwich-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
makedepends="python-devel python3-devel"
|
|
pycompile_module="dulwich"
|
|
short_desc="Python2 implementation of the Git file formats and protocols"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="https://www.dulwich.io/"
|
|
license="GPL-2, Apache-2.0"
|
|
distfiles="${PYPI_SITE}/d/dulwich/dulwich-${version}.tar.gz"
|
|
checksum=284d0000b21ac12f94bcd5eb3d7dcc42da51e5506b9a53a11c615b46da906d9b
|
|
|
|
alternatives="
|
|
dulwich:dul-receive-pack:/usr/bin/dul-receive-pack2
|
|
dulwich:dul-upload-pack:/usr/bin/dul-upload-pack2
|
|
dulwich:dulwich:/usr/bin/dulwich2"
|
|
|
|
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"
|
|
replaces="python3.4-dulwich>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/bin/*3
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|
|
python3.4-dulwich_package() {
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-dulwich>=${version}_${revision}"
|
|
}
|