summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ffc48317e2a57d473df2c5de7bb18e83a47464c (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
# Maintainer: robertfoster
_name=autoeq
pkgname="python-${_name}"
pkgver=4.1.1
pkgrel=1
pkgdesc="Automatic headphone equalizer config generator"
arch=(any)
url="https://github.com/jaakkopasanen/AutoEq"
license=("MIT")
depends=(
  'python-matplotlib'
  'python-numpy'
  'python-pillow'
  'python-pyyaml'
  'python-scipy'
  'python-soundfile'
  'python-tabulate'
  'python-tqdm'
)
makedepends=(python-build python-hatchling python-installer python-setuptools python-wheel)

source=(
  "https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz"
  "$_name.sh"
)

build() {
  cd $_name-$pkgver
  python -m build --wheel --no-isolation
}

package() {
  cd $_name-$pkgver
  python -m installer --destdir="$pkgdir" dist/*.whl

  install -Dm755 "../$_name.sh" "$pkgdir/usr/bin/$_name"
}

sha256sums=('7860a1f92d9fdda6677b9b6e9bfca21deca7f0bab37f85bb7c6f4e1462f73b99'
  '0a4b2abe2ce8c631008eef038660e4c73e68739002cb3d458529c578891faa81')