# Maintainer: Erich Eckner # Contributor: Ashley Bone pkgbase=python-portalocker pkgname=('python-portalocker') _pkgname=portalocker pkgver=2.7.0 pkgrel=5 pkgdesc='Easy, portable file locking API.' arch=('any') url="https://github.com/WoLpH/${_pkgname}" license=('PSF') makedepends=('python-setuptools') optdepends=('python-redis' 'redis') source=("https://pypi.python.org/packages/source/p/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") sha512sums=('9f6dc31fda36f2fcc7088134b5249c6ec4a92a1fa2e85bf55c700469f183d29ed1a1bd522b65909844c85dfe6872d83809d21b78dc89886533db2692cc709ed2') depends=( 'python>=3.12' 'python<3.13') build() { cp -a "${_pkgname}-${pkgver}" "py2-${_pkgname}-${pkgver}" cd "${srcdir}/${_pkgname}-${pkgver}" python setup.py build } package_python-portalocker() { cd "${_pkgname}-${pkgver}" python setup.py install --prefix='/usr' --root="${pkgdir}" --optimize=1 }