summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2a46ad961e686611b56d3c2e4bb5c411fb02dac9 (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: OSAMC <https://github.com/osam-cologne/archlinux-proaudio>
# Contributor: Florian Hülsmann <fh@cbix.de>

_slug=Ahornberg
_name=Ahornberg-VCV-Modules
pkgname=vcvrack-ahornberg
pkgver=2.1.6
pkgrel=2
pkgdesc='Ahornberg VCV Rack modules'
arch=(x86_64 aarch64)
url='https://github.com/Ahornberg/Ahornberg-VCV-Modules'
license=(GPL3 custom:OFL)
groups=(proaudio vcvrack-plugins)
depends=(gcc-libs vcvrack)
makedepends=(simde zstd)
options=(!emptydirs)
source=("$pkgname-$pkgver.tar.gz::https://github.com/Ahornberg/$_name/archive/refs/tags/v$pkgver.tar.gz"
        "fix-gcc-format.patch::https://github.com/Ahornberg/$_name/pull/20.patch")
sha256sums=('1b7006d7c6bb10c4efc51accf70959384fd512a20a3395104ea181302b79830b'
            'd87e4494844a6c432222487157d81510b402e0b2e55ac0608b1640c71790ab19')

prepare() {
  cd $_name-$pkgver
  # https://github.com/Ahornberg/Ahornberg-VCV-Modules/pull/20
  patch -p1 -i ../fix-gcc-format.patch
  # remove common license and unnecessary windows libs
  rm -r LICENSE.txt res/vst
}

build() {
  cd $_name-$pkgver
  make SLUG=$_slug VERSION=$pkgver RACK_DIR=/usr/share/vcvrack dist
}

package() {
  cd $_name-$pkgver
  install -d "$pkgdir"/usr/lib/vcvrack/plugins
  cp -va dist/$_slug -t "$pkgdir"/usr/lib/vcvrack/plugins
  install -d "$pkgdir"/usr/share/licenses/$pkgname
  mv "$pkgdir"/usr/lib/vcvrack/plugins/$_slug/res/fonts/licenses/*.txt \
    "$pkgdir"/usr/share/licenses/$pkgname
}