summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 89bc5c30363d25e79f7515aceb165e4eb5041e73 (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
41
42
43
44
45
46
47
# Maintainer: Simon Sorg <simon.sorg@student.hpi.de>
_dirname=pyannote-database
_pkgname=pyannote.database
pkgname=python-$_pkgname-git # '-bzr', '-git', '-hg' or '-svn'
pkgver=5.0.1.gbac3225
pkgrel=1
pkgdesc="Reproducible experimental protocols for multimedia (audio, video, text) database"
arch=('any')
url="https://github.com/pyannote/pyannote-database"
license=('MIT')
depends=(
  'python-pyannote.core-git'
  'python-yaml'
  'python-pandas'
  'python-typer'
)
makedepends=(
  'git'
  'python-build'
  'python-installer'
  'python-setuptools'
  'python-wheel'
  'python-pytest'
)

provides=("$_pkgname")
conflicts=(${provides[@]})
source=("$_dirname"::"git+$url")
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/$_dirname"
	printf "%s" "$(git describe --tags | cut -d "-" -f 1,3 | sed 's/.*v//' | sed 's/-/./')"
}

build() {
	cd "$srcdir/$_dirname"
	python -m build --no-isolation --wheel
}

package() {
	cd "$srcdir/$_dirname"
	python -m installer --destdir="$pkgdir" dist/*.whl
	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}