summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0c810234518177d06094ce02595154b5011056e8 (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
# Maintainer: SvartaHjarta <qi0cez9jf@mozmail.com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=plastex-git
pkgver=3.0.r12.g298a55b6
pkgrel=3
pkgdesc="Python-based LaTeX document processing framework"
arch=('any')
url="https://github.com/plastex/plastex/"
license=('custom')
depends=('python' 'python-jinja' 'python-unidecode' 'python-pillow' 'python-typing_extensions' 'texlive-core')
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
provides=('plastex')
conflicts=('plastex')
source=("git+https://github.com/plastex/plastex.git")
b2sums=('SKIP')
_gitname="plastex"

build() {
    cd "$_gitname"
    python -m build --wheel --no-isolation
}

pkgver() {
    cd "$_gitname"
    git describe --tags | sed 's|-|.r|' |tr - .
}

package() {
    cd "$_gitname"
    python -m installer --destdir="$pkgdir" dist/*.whl

    install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
    for _i in licenses/*; do
      install -Dm644 ${_i} "$pkgdir"/usr/share/licenses/"$pkgname"/"$_i"
    done
}