summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4456692ccd7bc2f2c483af527fb1f66e8d099f82 (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
# Maintainer: robertfoster

pkgname=friture-git
pkgver=0.49.r12.g2972d2b
pkgrel=1
pkgdesc="An application to visualize and analyze live audio data in real-time."
arch=(i686 x86_64)
url="https://friture.org/"
license=('GPL3')
depends=('python-appdirs' 'python-docutils' 'python-multipledispatch' 'python-numpy' 'python-pa-ringbuffer' 'python-pyqt5' 'python-pyrr' 'python-rtmixer' 'python-sounddevice')
optdepends=('jack: for JACK I/O support')
makedepends=('cython0' 'git' 'python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel')
conflicts=("${pkgname%-git}")
provides=("${pkgname%-git}")
source=("${pkgname%-git}::git+https://github.com/tlecomte/friture.git")

build() {
  cd ${pkgname%-git}
  python3 -m build -nwx
}

package() {
  cd ${pkgname%-git}

  python3 -m installer --destdir="$pkgdir" dist/*.whl

  install -Dm644 resources/images/friture.iconset/icon_512x512.png \
    "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
  install -Dm644 "appimage/${pkgname%-git}.desktop" \
    "${pkgdir}/usr/share/applications/${pkgname%-git}.desktop"
  sed -i "s|usr|/usr|g" \
    "${pkgdir}/usr/share/applications/${pkgname%-git}.desktop"
}

pkgver() {
  cd friture
  git describe --long --tags |
    sed 's/\([^-]*-g\)/r\1/;s/-/./g' |
    sed s/v//
}

sha256sums=('SKIP')