summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d72cda0f84fe0e9af223adb8e55f978520e6fa9b (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
# Maintainer: Ayatale <ayatale8@gmail.com>

pkgname=obs-plugin-waveform-bin
_pkgname=${pkgname%-bin}
pkgver=1.8.0
pkgrel=1
pkgdesc="Waveform is an audio spectral analysis plugin for OBS Studio"
arch=("x86_64")
url="https://github.com/phandasm/waveform"
license=("GPL3")
depends=("obs-studio>=28.0.0")
makedepends=("tar")
conflicts=("${_pkgname}-git")
options=("!strip" "emptydirs")
source=("${url}/releases/download/v${pkgver}/Waveform_v${pkgver}_Ubuntu_x86_64.deb")
sha256sums=('71e67a96dd5986aea4c433d10811119aa7939fa6851d30b09248c56aea34a11d')

_install() {
  find ${@: 2} -type f -exec install -Dm$1 {} ${pkgdir}/{} \;
}

build() {
  rm -rf ${srcdir}/build
  mkdir -p ${srcdir}/build
  tar -xf ${srcdir}/data.tar.gz -C ${srcdir}/build 
}

package() {
  cd ${srcdir}/build/
  install -Dm755 usr/lib/x86_64-linux-gnu/obs-plugins/waveform.so -t ${pkgdir}/usr/lib/obs-plugins/
  find usr/share/obs/obs-plugins/waveform -type f -exec install -Dm755 {} ${pkgdir}/{} \;
}