summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7aeac0279f0bd1420f09e44a31741979f89da3ec (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: Daniel Bershatsky <bepshatsky@yandex.ru>

pkgname=python-cibuildwheel
_pkgname=${pkgname#python-}
pkgver=3.0.1
pkgrel=1
pkgdesc='Build Python wheels for all the platforms with minimal configuration.'
arch=('any')
url='https://github.com/pypa/cibuildwheel'
license=('BSD-2-Clause')
groups=()
depends=('python-bashlex' 'python-bracex' 'python-certifi'
         'python-dependency-groups' 'python-filelock' 'python-packaging'
         'python-platformdirs')
makedepends=('python-build' 'python-hatchling' 'python-installer'
             'python-wheel')
optdepends=()
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('bcef5a2cfd1ce7ca50403d8b651d5efa3072d1546f1f5f591d25809c3d2d977d')

build() {
    python -m build -nw $srcdir/$_pkgname-$pkgver
}

package() {
    cd $_pkgname-$pkgver
    install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    python -m installer --compile-bytecode=1 --destdir=$pkgdir \
        dist/$_pkgname-$pkgver-*-*.whl
}