summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 76d897bf949de0017fc0f8e37e6d12f6733ce7d5 (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
# Maintainer: MoetaYuko <loli at yuko dot moe>
# Contributor: Joakim Repomaa <aur@j.repomaa.com>

pkgname=python-yalafi
pkgver=1.4.0
pkgrel=2
pkgdesc="Yet another LaTeX filter"
url="https://github.com/torik42/YaLafi"
depends=('python' 'languagetool')
makedepends=('python-build' 'python-installer')
license=('GPL3')
arch=('any')
source=(
    "https://github.com/torik42/YaLafi/archive/$pkgver.zip"
    "ltdirectory.patch"
)
sha256sums=('0062175c40659eb16beff26cb934f073c87f6e6e5f56657b713eb401ec6973cc'
            'ff59913ed6c4cc63dcf47f9604d5a096bd30e152f14e36ec53fa1e37793e5c10')

prepare() {
    cd YaLafi-$pkgver
    patch -p1 < "$srcdir/ltdirectory.patch"
}

build() {
    cd YaLafi-$pkgver
    python -m build --wheel --no-isolation
}

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