summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7a26eb730cb7a23f9af532f650e7b5e17e43d518 (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
# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
_base=sympy
pkgname=pypy3-${_base}
pkgdesc="Computer algebra system (CAS) in Python"
pkgver=1.14.0
pkgrel=1
arch=(any)
url="https://github.com/${_base}/${_base}"
license=(BSD)
depends=(pypy3-mpmath)
makedepends=(pypy3-build pypy3-installer pypy3-setuptools)
source=(${_base}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz)
sha512sums=('c0b382634942fa9f282667d6573f63b505412ac2049096d84bc078b3956860c806f19044447e42991ce78de114afee22c1002fb956ea0383cb27800f2a940cd1')

build() {
  cd ${_base}-${pkgver}
  pypy3 -m build --wheel --skip-dependency-check --no-isolation
}

package() {
  cd ${_base}-${pkgver}
  PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" pypy3 -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}