1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/testing/py3-smbc/APKBUILD
psykose deb62258ec */*: set --skip-build for python installs
this marginally increases install speed by not checking if it needs a rebuild.
also remove --prefix=/usr as it defaults to /usr already.

might break a build or two, will fix later
2023-01-10 04:19:31 +01:00

44 lines
1.3 KiB
Text

# 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 --skip-build --root="$pkgdir"
}
sha512sums="
91323044268cb91d40f693a833b12ab47c24edb0d027a6a5ce8936298b8dff4666be3ecd619b41449104ee3505766180355e9f92fd5cead0a8f50e86ef69e4fc py3-smbc-1.0.23.tar.gz
"