summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eff9aa7f19c83f2bef79c7a5338015d26bc9420e (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: David Runge <dvzrv@archlinux.org>
# Contributor: Ray Rashif <schiv@archlinux.org>

_android_arch=x86-64

pkgname=android-${_android_arch}-lv2
pkgver=1.18.10
pkgrel=2
arch=('any')
pkgdesc="Plugin standard for audio systems (Android ${_android_arch})"
url="https://lv2plug.in/"
license=('ISC')
depends=('android-ndk')
makedepends=('android-meson'
             "android-${_android_arch}-libsamplerate"
             "android-${_android_arch}-libsndfile"
             "android-${_android_arch}-serd"
             "android-${_android_arch}-sord")
optdepends=("android-${_android_arch}-sord: for lv2_validate")
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://lv2plug.in/spec/lv2-${pkgver}.tar.xz"{,.sig})
md5sums=('9c1f3143ea2eea341e8d6e1bad9e5e0e'
         'SKIP')
validpgpkeys=('907D226E7E13FA337F014A083672782A9BF368F3') # David Robillard <d@drobilla.net>

build() {
    cd "${srcdir}/lv2-${pkgver}"
    source android-env ${_android_arch}

    android-${_android_arch}-meson build \
        -D docs=disabled \
        -D online_docs=false \
        -D plugins=disabled \
        -D tests=disabled
    ninja -C build
}

package() {
    cd "${srcdir}/lv2-${pkgver}"
    source android-env ${_android_arch}

    DESTDIR="${pkgdir}" ninja -C build install
    rm -rf "${pkgdir}/${ANDROID_PREFIX_BIN}"
}