summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 853fc4538bf82b5584c8aa7424805d306153d34f (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

pkgname=python-timbl-git
pkgver=2025.01.22.r0.g5707c71
pkgrel=1
pkgdesc='Python binding for Timbl, a k-Nearest Neighbours machine learning suite'
arch=('x86_64')
url="https://github.com/proycon/python-timbl"
license=('GPL-3.0-or-later')
depends=('python' 'boost-libs' 'gcc-libs' 'timbl')
makedepends=('boost' 'git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
optdepends=('python-scipy')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+$url.git")
md5sums=('SKIP')

pkgver() {
    cd "${pkgname%-git}"
    git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./g'
}

build() {
    cd "${pkgname%-git}"
    python -m build --wheel --no-isolation
}

package() {
    cd "${pkgname%-git}"
    python -m installer --destdir="$pkgdir" dist/*.whl
}