blob: 03780081b1378d554b80f939bfdffc3b0da8a5e6 (
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
|
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: Ashley Bone <ashley DOT bone AT pm DOT me>
pkgbase=python-portalocker
pkgname=('python-portalocker')
_pkgname=portalocker
pkgver=2.6.0
pkgrel=1
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")
sha256sums=('964f6830fb42a74b5d32bce99ed37d8308c1d7d44ddf18f3dd89f4680de97b39')
depends=(
'python>=3.10'
'python<3.11')
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
}
|