summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a303ad1ff8a49590ea455290ae215ed9ae2a007 (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
45
46
47
# Maintainer: Popolon <popolon@popolon.org>
# Contributor: Miroslav Koškár <http://mkoskar.com/>

_plugname='ESeries'
_basename='vcvrack'
_branchname='v1'
pkgname='vcvrack-eseries'
pkgver=1.0
pkgrel=1
pkgdesc='E-Series VCV modules'
url='https://github.com/VCVRack/ESeries'
license=(BSD)
arch=(i686 x86_64)
depends=('vcvrack' 'libsamplerate')
conflicts=('vcvrack-eseries-git')
makedepends=(git zip)
install="$pkgname.install"

source=(
    "$_basename-$_plugname::git+https://github.com/$_basename/$_plugname.git#branch=${_branchname}"
    'vcvrack-eseries.install'
)
sha256sums=(
    SKIP
    'b93fd2a12cdf82d3844c4cfcafcc15a1c923715b1f7a174d4aaec6ddb9f74d4d'
)

build() {
  # define RACK_DIR, so Makefile snippets can be found
  export RACK_DIR="/usr/share/vcvrack"
  # define FLAGS, so headers can be included
  export FLAGS="-I/usr/include/vcvrack -I/usr/include/vcvrack/dep"
  # exporting LDFLAGS for libsamplerate, as the Delay module requires it
  export LDFLAGS="$(pkg-config --libs samplerate) ${LDFLAGS}"
  cd "${_basename}-${_plugname}"
  USE_SYSTEM_LIBS=true make
  USE_SYSTEM_LIBS=true make dist
}

package() {
    cd "${_basename}-${_plugname}"
    install -d "$pkgdir/opt/$_basename/plugins/$_plugname"
    cp -dr --preserve=mode -t "$pkgdir/opt/$_basename/plugins/$_plugname" \
        res plugin.so plugin.json
#    install -D -m644 "dist/$_plugname-$pkgver-lin.zip" \
#        "$pkgdir/opt/vcvrack/$_plugname.zip"
}