blob: 2f5d48d222072bdc389823e7a88e4ec016807232 (
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
|
# Maintainer: Rohit Goswami (HaoZeke) <rohit.goswami@aol.com>
pkgname=python-chemparseplot
pkgver=1.9.8
pkgrel=1
pkgdesc="Parsers and plotting tools for computational chemistry"
arch=('any')
url='https://pypi.org/project/chemparseplot/'
license=('MIT')
depends=('python' 'python-numpy' 'python-pint')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-hatchling' 'python-hatch-vcs')
source=("https://files.pythonhosted.org/packages/source/c/chemparseplot/chemparseplot-1.9.8.tar.gz")
sha256sums=('30ec8530500a792baec005a132ae12d6b384773ba878bbbaad1132485522b0fb')
build() {
cd "chemparseplot-1.9.8"
python -m build --wheel --no-isolation
}
package() {
cd "chemparseplot-1.9.8"
python -m installer --destdir="$pkgdir" dist/*.whl
install -d "$pkgdir/usr/share/licenses/$pkgname"
if [[ -f LICENSE ]]; then
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
elif [[ -f LICENSE.txt ]]; then
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
else
echo MIT > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
fi
}
|