blob: 2ead799664978938c011fa9a27089130bef636ba (
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
40
41
|
# Maintainer: Maks Verver <maks@verver.ch>
pkgname=meson-pypy3
_name=meson-python
pkgver=0.18.0
pkgrel=1
pkgdesc='Meson PEP 517 Python build backend'
arch=(any)
url='https://github.com/mesonbuild/meson-python'
groups=(python-build-backend)
license=(MIT)
depends=(meson
patchelf
pypy3
pypy3-packaging
pypy3-pyproject-metadata)
makedepends=(git
ninja
pypy3-build
pypy3-installer)
optdepends=('python-colorama: colored output')
source=(git+https://github.com/mesonbuild/$_name#tag=$pkgver
remove-meson-dependency.patch)
sha256sums=('8a63df1fc44d72efa737405eef4bf4e395252305cfc19c20974c3dd50e0fa9a2'
'2decf6c12ef1646bacd6bf733ff313cb4d43c8214a18ff68b0d66cc55685571e')
prepare() {
cd "$_name"
patch -i ../remove-meson-dependency.patch
}
build() {
cd "$_name"
pypy3 -m build --wheel --no-isolation
}
package() {
cd "$_name"
pypy3 -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}
|