void-packages/srcpkgs/python-smbc/template

30 lines
874 B
Bash
Raw Normal View History

# Template file for 'python-smbc'
pkgname=python-smbc
2015-06-08 12:18:14 +02:00
version=1.0.15.4
revision=1
wrksrc="pysmbc-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="pkg-config python-devel python3.4-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"
2015-06-08 12:18:14 +02:00
checksum=08a8674e08d1508ed362786a9a436bfd2753895de7ea17f6ceb110da45cc004a
post_install() {
sed -i 's,#!/usr/bin/python,&3.4,' ${DESTDIR}/usr/lib/python3.4/site-packages/smbc/xattr.py
}
python3.4-smbc_package() {
pycompile_version="3.4"
pycompile_module="smbc"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/lib/python3.4
}
}