-
Notifications
You must be signed in to change notification settings - Fork 1
/
PKGBUILD
35 lines (30 loc) · 952 Bytes
/
PKGBUILD
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
# Maintainer: Jonathan Schilling <jonathan.schilling@mail.de>
pkgname=pypspline3
pkgver=1.0.0
pkgrel=1
pkgdesc="Python interface to PSPLINE, a 1D to 3D spline library"
arch=("x86_64")
url="https://github.com/jonathanschilling/pypspline3"
license=('GPL')
depends=(python-numpy python-pytest)
makedepends=(gcc)
provides=(pypspline3)
conflicts=(pyspline3)
source=("https://github.com/jonathanschilling/pypspline3/archive/refs/tags/v1.0.0.tar.gz")
md5sums=("4dfd9c7a31e04d194b0e4925372f3415")
build() {
cd "$pkgname-$pkgver"
python setup.py build
}
check() {
cd "$pkgname-$pkgver/build/lib.linux-x86_64-cpython-310/"
pytest
}
package() {
cd "$pkgname-$pkgver"
# actually install
pip install --no-deps --target="$pkgdir/usr/lib/python3.10/site-packages/" .
# cleanup leftovers
rm -rf "$pkgdir/usr/lib/python3.10/site-packages/$pkgname/__pycache__"
rm -f "$pkgdir/usr/lib/python3.10/site-packages/pypspline3-1.0.0.dist-info/direct_url.json"
}