summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5217ed45cd8ce7f90c3fe17191d14b638010054e (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
# Contributor: Patrick Mischke

pkgname='python-pairinteraction'
_name='pairinteraction'
_py="py3"
pkgver=2.0.0
commit="2faf2d01f95311ef29b67f46ae8eb918d2ba7643"
pkgrel=2
pkgdesc="A Rydberg Interaction Calculator"
url="https://github.com/pairinteraction/pairinteraction"
depends=('python-typing_extensions' 'python-numpy' 'python-scipy' 'python-pint' 'python-colorama' 'pyside6' 'python-matplotlib' 'python-mplcursors' 'python' 'intel-oneapi-mkl' 'python-mkl' 'nlohmann-json' 'doctest' 'eigen' 'fmt' 'openssl' 'spdlog' 'cpptrace' 'jupyter-nbformat' 'jupyter-nbconvert')
makedepends=('cmake' 'python-scikit-build-core' 'nanobind' 'python-pip')
license=('GPL-3.0-only' 'LGPL-3.0-only')
arch=('x86_64')
options=('!buildflags' 'staticlibs' '!strip' 'libtool')
# every once in a while an actual release is build and we can grab that
# source=("https://github.com/pairinteraction/pairinteraction/archive/refs/tags/v$pkgver.tar.gz")
# for now we just use the zip of whatever commit I updated this last
source=("https://github.com/pairinteraction/pairinteraction/archive/$commit.zip")

sha256sums=("7d95c6587e2b3f2673163badfbaa50fac104388c46f4b4208c78e15a5417bb39")

build() {
#  cd $srcdir/pairinteraction-$pkgver
  cd $srcdir/pairinteraction-$commit
  mkdir build
  cd build
  cmake ..
  cmake --build . -j 8
}

package() {
#  cd "$srcdir/pairinteraction-$pkgver/build"
  cd "$srcdir/pairinteraction-$commit"
  PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps .
}

#check() {
#  pairinteraction test
#}