blob: 5c87574fb3c51e398175a144e091b2dc68e0690b (
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
42
43
44
45
|
# Maintainer: Kimiblock Moe
pkgname=python-amulet-fault-handler
pkgdesc="A library to report tracebacks from C/C++ faults."
url="https://github.com/Amulet-Team/Amulet-Fault-Handler"
license=("LicenseRef-unknown")
arch=(any)
pkgver=1.0.8
pkgrel=2
makedepends=(
python-setuptools
python-versioneer
git
python-wheel
python-build
python-installer
cmake
)
depends=(
python
pybind11
)
source=(
"source::git+${url}.git#tag=${pkgver}"
)
md5sums=('SKIP')
function prepare() {
cd "${srcdir}/source"
git clean -fdx
git submodule init
git submodule update
}
function build() {
cd "${srcdir}/source"
#python setup.py build
python -m build --wheel --no-isolation
}
function package() {
cd "${srcdir}/source"
#python setup.py install --root="$pkgdir" --optimize=1
python -m installer --destdir="$pkgdir" dist/*.whl
}
|