void-packages/srcpkgs/python-dulwich/template
2016-07-07 17:41:15 +02:00

40 lines
1.2 KiB
Bash

# Template file for 'python-dulwich'
pkgname=python-dulwich
version=0.14.1
revision=1
wrksrc="dulwich-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
makedepends="python-devel python3.4-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"
distfiles="${PYPI_SITE}/d/dulwich/dulwich-${version}.tar.gz"
checksum=7c1f49e6e72fa8635328d32bfeb7103e86e175d87fa80a9cefdd63a360f7ba93
alternatives="
dulwich:dul-receive-pack:/usr/bin/dul-receive-pack2.7
dulwich:dul-upload-pack:/usr/bin/dul-upload-pack2.7
dulwich:dulwich:/usr/bin/dulwich2.7"
post_install() {
# remove extra docs
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/docs
}
python3.4-dulwich_package() {
alternatives="
dulwich:dul-receive-pack:/usr/bin/dul-receive-pack3.4
dulwich:dul-upload-pack:/usr/bin/dul-upload-pack3.4
dulwich:dulwich:/usr/bin/dulwich3.4"
pycompile_version="3.4"
pycompile_module="dulwich"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/bin/*3.4
vmove usr/lib/python3.4
}
}