blob: 9c328fc763e6f511003496cb2047fa048dec83fc (
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
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: David Runge <dvzrv@archlinux.org>
# Contributor: damir <damir@archlinux.org>
_android_arch=x86-64
pkgname=android-${_android_arch}-ladspa
pkgver=1.17
pkgrel=1
arch=('any')
license=('LGPL-2.1')
pkgdesc="Linux Audio Developer's Simple Plugin API (LADSPA) (Android ${_android_arch})"
url="https://www.ladspa.org/"
depends=('android-ndk')
makedepends=('android-environment'
"android-${_android_arch}-libsndfile")
optdepends=("android-${_android_arch}-libsndfile: for applyplugin")
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://ladspa.org/download/ladspa_sdk_$pkgver.tgz"
'0001-Fix-Makefile.patch'
'0002-fix-memleak-in-plugin-scanning.patch')
md5sums=('f4a2fb40405d1fc746d10fe0d3536db1'
'1c5c972b111d8b0212d91bd970228b2b'
'c78da6b7004bac103a709ef74ede5330')
prepare() {
cd "${srcdir}/ladspa_sdk_$pkgver"
patch -Np1 -i ../0001-Fix-Makefile.patch
patch -Np1 -i ../0002-fix-memleak-in-plugin-scanning.patch
}
build() {
cd "${srcdir}/ladspa_sdk_$pkgver/src"
source android-env ${_android_arch}
make \
CC="${CC}" \
CPP="${CXX}" \
CFLAGS="${CFLAGS} -I. -Wall -Werror -fPIC" \
CXXFLAGS="${CXXFLAGS} -I. -Wall -Werror -fPIC" \
$MAKEFLAGS \
targets
}
package() {
cd "${srcdir}/ladspa_sdk_$pkgver/src"
source android-env ${_android_arch}
make \
INSTALL_PLUGINS_DIR="$pkgdir/${ANDROID_PREFIX_LIB}/ladspa" \
INSTALL_INCLUDE_DIR="$pkgdir/${ANDROID_PREFIX_INCLUDE}" \
install
${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}/ladspa"/*.so
}
|