30 lines
871 B
Plaintext
30 lines
871 B
Plaintext
# Template file for 'python-smbc'
|
|
pkgname=python-smbc
|
|
version=1.0.15.3
|
|
revision=2
|
|
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@gmail.com>"
|
|
distfiles="${PYPI_SITE}/p/pysmbc/pysmbc-${version}.tar.bz2"
|
|
checksum=e12e397a4d23ddad8b7ef74abb9f8eef55fdf54d91f622bf5224a0a591b17854
|
|
|
|
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
|
|
}
|
|
}
|