blob: f4da8580cc6a9ca825dc271c94b7c7ed23ba4aaf (
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
37
38
39
40
|
# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>
pkgname=python-sacremoses-git
pkgver=0.0.35.r41.gb94654f
pkgrel=1
pkgdesc='Python port of Moses tokenizer, truecaser and normalizer'
arch=('any')
url='https://github.com/alvations/sacremoses'
license=('MIT')
provides=('python-sacremoses')
conflicts=('python-sacremoses')
depends=('python-six'
'python-click'
'python-joblib'
'python-tqdm'
'python-regex')
makedepends=('python-setuptools')
source=("${pkgname%-git}::git+https://github.com/alvations/sacremoses")
sha256sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${pkgname%-git}"
sed -i "s|==|>=|" requirements.txt
}
build() {
cd "${pkgname%-git}"
python setup.py build
}
package() {
cd "${pkgname%-git}"
python setup.py install --root="${pkgdir}/" --optimize=1
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|