summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f6ded917620cc9d94bff0427db9b0c8864e741ef (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: Asger Hautop Drewsen <asgerdrewsen@gmail.com>
# PKGBUILD generated by pipman
# Python package author: Philippe Faist <philippe.faist@bluewin.ch>
pkgname=python-pylatexenc
pkgver=2.10
pkgrel=1
pkgdesc="Python library for encoding unicode to latex and for parsing LaTeX to generate unicode text"
arch=(any)
url="https://github.com/phfaist/pylatexenc"
license=(MIT)
depends=(python)
makedepends=(python-setuptools)
source=("${pkgname}-v${pkgver}.tar.gz::https://github.com/phfaist/pylatexenc/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=(bcb859affea00b5acb25aec780620170ab9d385c8f7dc266b7237ce9f47a59fd)

build() {
    cd "pylatexenc-${pkgver}"
    python setup.py build
}

package() {
    cd "pylatexenc-${pkgver}"
    python setup.py install --root="$pkgdir" --optimize=1
    install -D -m644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE.txt
}

check() {
    cd "pylatexenc-${pkgver}"
    python -m unittest test/test_*.py
}