void-packages/srcpkgs/python-dulwich/template
2016-04-28 13:29:50 +02:00

34 lines
955 B
Bash

# Template file for 'python-dulwich'
pkgname=python-dulwich
version=0.13.0
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=8ed35334e22cf93e7dcfd5113d8e262041967fe4c3cead5e262c9102f3e63238
post_install() {
# remove extra docs
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/docs
for f in build-3.4/scripts-3.4/*; do
vbin ${f} ${f}3.4
done
}
python3.4-dulwich_package() {
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
}
}