summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 32949700fdab55fe8bf7a1a92c0e92603ec498c6 (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
# Maintainer: PumpkinCheshire <sollyonzou@gmail.com>

_name=auditok
pkgname=python-auditok
pkgver=0.1.8
pkgrel=2
pkgdesc="An audio/acoustic activity detection and audio segmentation tool."
arch=('any')
url="https://github.com/amsehili/auditok"
license=('MIT')
depends=("python")
optdepends=("python-pydub: read audio files in popular audio formats (ogg, mp3, etc.) or extract audio from a video file."
	"python-pyaudio: read audio data from the microphone and play back detections."
	"python-matplotlib: plot audio signal and detections"
	"python-numpy: used for math operations instead of standard python if available.")
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
md5sums=('ce305a5c18fd2a472c103400a9a3b76a')

build() {
	cd "$srcdir/$_name-$pkgver"
	python setup.py build
}

package() {
	cd "$srcdir/$_name-$pkgver"
	python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}