summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f012d404c156f618ec8bc6c6251b67eb348b3764 (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
# Maintainer: Amin Vakil <info AT aminvakil DOT com>

pkgname=python-readerwriterlock
_name=${pkgname#python-}
pkgver=1.0.9
pkgrel=1
pkgdesc="A python implementation of the three Reader-Writer problems"
arch=('any')
url="https://github.com/elarivie/pyReaderWriterLock"
license=('MIT')
depends=('python' 'python-typing_extensions')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha512sums=('77ac6996931a9b248d6e1ad74db7645fed7e01328f798d161b7f39ce9b319e96931739227a70148e9bc76bb467f480b27f9c03f17f2704bcef833bdf8b901f67')

build() {
  cd "$_name-$pkgver"
  python -m build --wheel --no-isolation
}

package() {
  cd "$_name-$pkgver"
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}