summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e09b576323df3166ab00e8c18e7eebff9e183066 (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
31
32
33
34
35
36
37
38
39
# Maintainer: peippo <christoph.fink@gmail.com>
# Contributor: Carlos Aznarán <caznaranl@uni.pe>

pkgname="python-ninja"
_name=${pkgname#python-}
pkgdesc="The infrastructure to build Ninja Python wheels"
url="https://github.com/scikit-build/ninja-python-distributions"

pkgver=1.11.1.3
pkgrel=1

arch=("any")
license=("Apache-2.0")

depends=(
    "python"
)
makedepends=(
    "python-build"
    "python-hatch-fancy-pypi-readme"
    "python-installer"
    "python-scikit-build-core"
    "python-setuptools-scm"
    "python-wheel"
)

source=("${pkgname}-${pkgver}.tar.gz::https://github.com/scikit-build/ninja-python-distributions/archive/refs/tags/${pkgver}.tar.gz")
b2sums=("cce325cfa743c43025c8bd820ee17c580241221e6974e6ffa95f28ecc23a7ffeb957359cc68e6e4acac3bf8770ccad3351795abce9443fb714794dfc00a1f5f4")

build() {
    cd "${srcdir}/ninja-python-distributions-${pkgver}"
    python -m build --wheel --no-isolation
}

package() {
    cd "${srcdir}/ninja-python-distributions-${pkgver}"
    python -m installer --destdir="$pkgdir" dist/*.whl
    rm "${pkgdir}/usr/bin/ninja"  # conflict with `ninja`
}