summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ba85253e8577b16ae5266e7b722d5a029381e359 (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
# Maintainer: OSAMC <https://github.com/osam-cologne/archlinux-proaudio>
# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de>

_name=LittleFly
pkgname=${_name,,}.lv2
pkgver=1.0
pkgrel=3
pkgdesc='A high gain overdrive/distortion pedal simulation LV2 plugin'
arch=(aarch64 x86_64)
url="https://github.com/brummer10/${_name}.lv2"
license=(custom:0BSD)
groups=(lv2-plugins pro-audio)
depends=(cairo gcc-libs libx11)
makedepends=(lv2)
checkdepends=(lv2lint)
optdepends=('lv2-host: for loading the LV2 plugin')
source=("https://github.com/brummer10/${_name}.lv2/releases/download/v${pkgver}/${_name}_${pkgver}.tar.gz"
        'littlefly-fix-ttl.diff::https://github.com/brummer10/LittleFly.lv2/commit/5f3e77afec2b29aff1765bd722d8704fcc305c5c.diff')
sha512sums=('5782f0e5ba0ebde72f43f656253b8cc1fa1c78af9c7b6b276135d9e65a14c2ffc0b3476b367047a68417231d61ddd9496c3561793d34a6e5026eba7ead06bfd8'
            '37bb4708f89d07d7d6174ca6bfebf4e7b072f77580408a74df5ed5170f339e2d71b7122fed0c09aba64cbd59f318f3db5c4b5d455e87908d619afa993ef8ba36')

build() {
  cd ${_name}_$pkgver
  make
}

prepare() {
  cd ${_name}_$pkgver
  patch -p1 -N -r _ -i "$srcdir"/littlefly-fix-ttl.diff
}

check() {
  cd ${_name}_$pkgver
  mkdir -p lv2
  ln -sf ../$_name/$_name.lv2 lv2/$_name.lv2
  LV2_PATH="$PWD/lv2:/usr/lib/lv2" lv2lint -M pack "https://github.com/brummer10/$_name.lv2#_${_name}_"
}

package() {
  cd ${_name}_$pkgver
  make DESTDIR="$pkgdir" install
  install -vDm 644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
  install -vDm 644 README.md $_name.png -t "$pkgdir"/usr/share/doc/$pkgname
}