void-packages/srcpkgs/python-smbc/template
2016-11-23 20:06:06 +01:00

29 lines
903 B
Bash

# Template file for 'python-smbc'
pkgname=python-smbc
version=1.0.15.6
revision=1
wrksrc="pysmbc-${version}"
build_style=python-module
hostmakedepends="pkg-config python-devel python3-devel"
makedepends="${hostmakedepends/pkg-config/} samba-devel"
pycompile_module="smbc"
short_desc="Python2 bindings for libsmbclient"
homepage="https://pypi.python.org/pypi/pysmbc/"
license="GPL-2"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="${PYPI_SITE}/p/pysmbc/pysmbc-${version}.tar.bz2"
checksum=6b5271b45d3aa6896046efadd38db5e6fefcd992e8a55902d80e2b64e9875b9e
python3-smbc_package() {
pycompile_module="smbc"
replaces="python3.4-smbc>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}
python3.4-smbc_package() {
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-smbc>=${version}_${revision}"
}