blob: 28010b3cf00eb405487cd12b0d20385fb38d5022 (
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
46
47
48
49
50
51
|
# Maintainer: Blair Bonnett <blair dot bonnett at gmail>
pkgname=python-plyfile
pkgdesc="Read and write ASCII and binary PLY files"
pkgver=1.1
pkgrel=2
url='https://github.com/dranjan/python-plyfile'
arch=('any')
license=('GPL-3.0-or-later')
depends=(
'python-numpy'
)
makedepends=(
'git'
'python-build'
'python-installer'
'python-pdm-backend'
)
checkdepends=(
'python-pytest'
)
source=(
"git+https://github.com/dranjan/python-plyfile.git#tag=v$pkgver"
'update_build_system.patch'
)
sha256sums=(
'354e26372bbdd683f586ff97b60e11446b7f4b52e7eaaef385ec6f45faec6cc2'
'72bd6d21c0e88da2f76e767d5cc3b4e4b5c0e0143a44b0107832b6c131d3d93a'
)
prepare() {
cd python-plyfile
patch -p0 -i "$srcdir/update_build_system.patch"
}
build() {
cd python-plyfile
python -m build --no-isolation --wheel
}
check() {
cd python-plyfile
python -m pytest
}
package() {
cd python-plyfile
python -m installer --destdir="$pkgdir" "dist/plyfile-$pkgver-"*.whl
}
|