blob: 6cd5b35cc583b210d5e48704dadec0641c545985 (
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
|
# Maintainer: Torsten Keßler <t dot kessler at posteo dot de>
pkgname=python-meshio
pkgver=5.0.3
pkgrel=1
pkgdesc='Input/output for many mesh formats'
url='https://github.com/nschloe/meshio'
arch=('x86_64')
license=('MIT')
depends=('python-numpy')
makedepends=('python-build' 'python-pip')
optdepends=('python-netcdf4' 'python-h5py')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('cef7b6f3a30b574bb2e3d75b0ed548d516eeba1fe3fec156b07987dafaa6dc73')
build() {
cd "meshio-$pkgver"
python3 -m build .
}
package() {
cd "meshio-$pkgver/dist"
tar zxf "meshio-$pkgver.tar.gz"
cd "meshio-$pkgver"
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
_site=$(/usr/bin/python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')
mkdir -p "$pkgdir/$_site/"
cp -a "src/meshio" "$pkgdir/$_site"
cp -a "src/meshio.egg-info" "$pkgdir/$_site"
}
|