summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5b47f4c2a60cad931ed94ef751f9674dc300c1b7 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>
# Contributor: Nick Lanham <nick@afternight.org>

_plugin_uri="http://code.google.com/p/amsynth/amsynth"
pkgname=amsynth-git
_pkgname=amsynth
pkgver=1.12.4.r1310.88e87b7
pkgrel=1
pkgdesc="An analog modelling (a.k.a. virtual analog) synthesizer (git version)"
arch=(i686 x86_64)
url="https://amsynth.github.io/"
license=(GPL2)
groups=(dssi-plugins lv2-plugins pro-audio vst-plugins)
depends=(cairo gcc-libs glibc)
makedepends=(alsa-lib autoconf-archive dssi git fontconfig freetype2 gdk-pixbuf2 glib2
gtk2 harfbuzz intltool jack ladspa liblo lv2 pandoc)
checkdepends=(lv2lint)
optdepends=('alsa-lib: for standalone application'
            'dssi-host: for DSSI plugin'
            'jack: for standalone application'
            'liblo: for DSSI plugin and standalone application'
            'new-session-manager: for session management with the standalone application'
            'lv2-host: for LV2 plugin'
            'vst-host: for VST plugin')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${_pkgname}::git+https://github.com/amsynth/amsynth.git")
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  ver=$(git describe --tags `git rev-list --tags --max-count=1` | cut -f 2 -d -)
  echo $ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd "${srcdir}/${_pkgname}"
  ./autogen.sh
  ./configure \
    --prefix=/usr \
    --with-alsa \
    --with-dssi \
    --with-jack \
    --with-lv2 \
    --with-nsm \
    --with-pandoc \
    --with-vst
  make
}

check() {
  cd "${srcdir}/${_pkgname}"
  cp .libs/${_pkgname}_lv2*.so data/${_pkgname}.lv2/
  lv2lint -Mpack -I "data/${_pkgname}.lv2" "${_plugin_uri}"
}

package() {
  depends+=(libatk-1.0.so libfontconfig.so libfreetype.so libgdk_pixbuf-2.0.so
  libgdk-x11-2.0.so libgio-2.0.so libglib-2.0.so libgobject-2.0.so
  libgtk-x11-2.0.so libharfbuzz.so libpangocairo-1.0.so libpangoft2-1.0.so
  libpango-1.0.so)

  cd "${srcdir}/${_pkgname}"
  make DESTDIR="${pkgdir}/" install
  install -vDm 644 {AUTHORS,NEWS,README} -t "${pkgdir}/usr/share/doc/${pkgname}/"
}

# vim:set ts=2 sw=2 et: