blob: 64187eb1627a8e95e7bfa8fc9c571913af41aeb8 (
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
|
# Maintainer: Kimiblock Moe
pkgname=python-pkuseg-git
pkgdesc="pkuseg多领域中文分词工具; The pkuseg toolkit for multi-domain Chinese word segmentation"
url="https://github.com/lancopku/pkuseg-python"
license=(MIT)
arch=(any)
pkgver=r200.071d57c
pkgrel=1
makedepends=(python-numpy cython python-build python-installer python-wheel python-setuptools git)
depends=(python python-numpy cython)
source=(
"git+https://github.com/lancopku/pkuseg-python.git"
)
md5sums=(
"SKIP"
)
provides=(python-pkuseg)
function pkgver() {
cd "${srcdir}/pkuseg-python"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
function build() {
cd "${srcdir}/pkuseg-python"
#python -m build --wheel --no-isolation
python setup.py build
}
function package() {
cd "${srcdir}/pkuseg-python"
#python -m installer --destdir="${pkgdir}" dist/*.whl
python setup.py install --root="$pkgdir" --optimize=1
}
|