summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ddf37ec10213210c83f9cf8ef612c58afa1c1626 (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.5.0
pkgrel=1
pkgdesc="Yet another LaTeX filter"
url="https://github.com/torik42/YaLafi"
depends=('python' 'languagetool')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
license=('GPL3')
arch=('any')
source=(
	"https://github.com/torik42/YaLafi/archive/$pkgver.zip"
	"ltdirectory.patch"
)
sha256sums=('54b2a347875ded37edc1db04f7d836704514f216bbb6a9d62e732a9d525e276d'
            '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
}