blob: fc18f6df11ab7a65fee7b505e9291b23af8f6c14 (
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
|
# Maintainer: Techcable <Techcable at techcable dot net>
pkgname=mathics-pygments
pkgver=1.0.2
pkgrel=1
pkgdesc="A pygments-based lexer and scanner for Mathics."
arch=("any")
url="https://github.com/Mathics3/mathics-pygments"
license=('custom')
groups=()
depends=("mathics-scanner>=1.2.0"
"python-pygments>=2"
"python-ujson")
checkdepends=("python-pytest")
backup=() # Do we have any config files?
options=()
install=
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('70121208eb13be0d1795bda1890bfd7e3b856bbc2e0b9891119ca5ae97de51ac')
validpgpkeys=()
build() {
cd "$pkgname-$pkgver"
python setup.py build
}
check() {
cd "$pkgname-$pkgver"
# Test environment needs this -_-
# Essentially they assume we've already been installed
export PYTHONPATH="."
pytest tests
}
package() {
cd "$pkgname-$pkgver"
python setup.py install --root="${pkgdir}/" --prefix="usr/"
}
|