summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 75baf8e60fa4193da06ac9e7bf93b1b6d7ad8f72 (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: yuhldr <yuhldr@qq.com>

pkgname=('python-phonopy')
pkgver=2.38.2
pkgrel=2
pkgdesc="Phonopy is an open source package for phonon calculations at harmonic and quasi-harmonic levels"
arch=('any')
url="https://github.com/phonopy/phonopy"
license=('BSD')
depends=("python-numpy" "python-pyaml" "python-matplotlib" "spglib" "python-h5py")
optdepends=("python-seekpath" "python-symfc")
makedepends=(python
             nanobind
             python-build
             python-pip
             python-scikit-build-core
             python-setuptools-scm)

source=("git+https://github.com/phonopy/phonopy.git#tag=v${pkgver}")
sha256sums=('SKIP')

build() {
  cd "$srcdir"/phonopy
  rm -rf dist
  python -m build --wheel --no-isolation
}


package() {
  cd "$srcdir"/phonopy
  PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps dist/*.whl
}