blob: 3816d6e90433da1689f4fb577d7ae27845abcffb (
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
|
# Maintainer: Junfeng Qiao <qiaojunfeng at outlook.com>
# Contributor:
pkgname=arxiv-latex-cleaner
_pkgname=arxiv-latex-cleaner
pkgver=1.0.4
pkgrel=1
pkgdesc="Easily clean the LaTeX code of your paper to submit to arXiv"
arch=('any')
url='https://github.com/google-research/arxiv-latex-cleaner'
license=('Apache')
makedepends=(git python-build python-installer python-wheel python-setuptools)
depends=('python>=3' 'python-absl' 'python-pillow>=6.2.0' 'python-pyyaml' 'python-regex')
source=("${_pkgname}::git+https://github.com/google-research/arxiv-latex-cleaner")
sha256sums=('SKIP')
build() {
cd $_pkgname
git checkout v$pkgver
python -m build --wheel --no-isolation
}
package() {
cd $_pkgname
python -m installer --destdir="$pkgdir" "dist/arxiv_latex_cleaner-${pkgver}-py3-none-any.whl"
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
}
|