2014-06-24 14:24:24 +00:00
|
|
|
# Template file for 'python-smbc'
|
|
|
|
pkgname=python-smbc
|
2014-11-03 22:11:57 +00:00
|
|
|
version=1.0.15.3
|
2014-11-05 20:00:00 +00:00
|
|
|
revision=2
|
2014-06-24 14:24:24 +00:00
|
|
|
wrksrc="pysmbc-${version}"
|
|
|
|
build_style=python-module
|
2014-11-05 20:00:00 +00:00
|
|
|
python_versions="2.7 3.4"
|
|
|
|
hostmakedepends="pkg-config python-devel python3.4-devel"
|
|
|
|
makedepends="${hostmakedepends/pkg-config/} samba-devel"
|
|
|
|
pycompile_module="smbc"
|
2014-06-24 14:24:24 +00:00
|
|
|
short_desc="Python2 bindings for libsmbclient"
|
|
|
|
homepage="https://pypi.python.org/pypi/pysmbc/"
|
|
|
|
license="GPL-2"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2014-11-03 22:09:54 +00:00
|
|
|
update_pkgname="pysmbc"
|
2014-11-05 20:00:00 +00:00
|
|
|
distfiles="${PYPI_SITE}/p/pysmbc/pysmbc-${version}.tar.bz2"
|
2014-11-03 22:11:57 +00:00
|
|
|
checksum=e12e397a4d23ddad8b7ef74abb9f8eef55fdf54d91f622bf5224a0a591b17854
|
2014-11-05 20:00:00 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|