blob: 65842f640552875f91cc32b7bb1d71e950f3b29e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Contributor: Noel Kuntze <noel.kuntze@thermi.consulting>
# Maintainer: Noel Kuntze <noel.kuntze@thermi.consulting>
pkgname=py3-smbc
_pkgname=pysmbc
pkgver=1.0.23
pkgrel=1
pkgdesc="Python3 bindings for libsmbclient"
url="https://github.com/hamano/pysmbc"
arch="all"
license="GPL-2.0-or-later"
depends="python3"
makedepends="python3-dev samba-dev py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/hamano/pysmbc/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check"
build() {
python3 setup.py build
}
# add at a later point in time when they have self contained tests
# checkdepends="py3-nose"
# check() {
# # can't run checks at all in such an environment, we'd need to run a samba server.
# # From README.md of upstream repo:
# # NOTE: to run your tests, you need
# # - a running samba server
# # - one shared folder with
# # - rw permissions
# # - guest ok = no
# # Makefile uses "python" not "python3" so we can't use it verbatim.
# # Just copying the .so file is exactly what the Makefile does too.
# mv build/lib*/_smbc*.so .
# nosetests
# }
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir" --skip-build
}
sha512sums="
91323044268cb91d40f693a833b12ab47c24edb0d027a6a5ce8936298b8dff4666be3ecd619b41449104ee3505766180355e9f92fd5cead0a8f50e86ef69e4fc py3-smbc-1.0.23.tar.gz
"
|