blob: f305d3591627b119c1875a7473e9d4ef95bda04f (
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
|
# Maintainer: Butui Hu <hot123tea123@gmail.com>
pkgname=python-simplecrf
_pkgname=SimpleCRF
pkgver=0.2.1.1
pkgrel=2
pkgdesc='Python wrap of crf and dense crf, both 2d and 3d are supported'
arch=('x86_64')
url='https://github.com/HiLab-git/SimpleCRF'
license=('BSD')
depends=(
python-numpy
)
makedepends=(
python-setuptools
)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/HiLab-git/SimpleCRF/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=('e8cac6be6b4a0eec80d015014a4ec0b960503f59e01f3f45f4a147ab8e51f1d161ee6e3b23f74242f26896bdd43a8c35c7107b7d4c5c1aa281d1b8ec5c0664e7')
build() {
cd "${_pkgname}-${pkgver}"
python setup.py build
}
package() {
cd "${_pkgname}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim:set ts=2 sw=2 et:
|