1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: damir <damir@archlinux.org>
7 pkgdesc="Linux Audio Developer's Simple Plugin API (LADSPA)"
10 url="https://www.ladspa.org/"
11 depends=('gcc-libs' 'glibc')
12 makedepends=('libsndfile')
13 optdepends=('libsndfile: for applyplugin')
14 source=("https://ladspa.org/download/ladspa_sdk_${pkgver}.tgz"
15 'fix-memleak-in-plugin-scanning.patch')
16 sha512sums=('37f94aa52b5a2f8709528989dea289eb01342f3bcb9e85d0f4829ddd9d90b2934a113db11100f09375a50f6612122b78156fec916f2c78a22406253d5cb394c7'
17 'e80a575e6afe42f9d0ac1234a7832a29fb9362c7ab7b2d6b14cc3e6da6a9ba67af886cf09f1c0b78c161205084f705049fb4dc22fe2795efaeb7d94da90dc93e')
18 b2sums=('cfb80e8ced314d5cc62fcb7f0b82e58f572503f2a732b2bb8a58343e8f69e417c0b0a2919bbb40629567fb331bf60a7f0c6f186db47e5b2651725b039526cdbb'
19 'b2235b41d9638cceb93a41452f1f0b710bc3f9264fe735972099244dfc8d98d354c7d15084d79b0bdfc4fa3f437f9368f81aa0ebdb7e39df5900fbbf172927c2')
22 mv -v ${pkgname}_sdk_${pkgver} ${pkgname}-${pkgver}
23 cd "${pkgname}-${pkgver}"
24 patch -Np0 -i "../fix-memleak-in-plugin-scanning.patch"
25 # add LDFLAGS for full RELRO
26 sed -e "s#-O2#${CFLAGS} ${LDFLAGS}#" -i src/Makefile
30 cd "${pkgname}-${pkgver}/src"
35 cd "${pkgname}-${pkgver}/src"
36 make INSTALL_PLUGINS_DIR="${pkgdir}/usr/lib/ladspa/" \
37 INSTALL_INCLUDE_DIR="${pkgdir}/usr/include/" \
38 INSTALL_BINARY_DIR="${pkgdir}/usr/bin/" install
39 install -vDm 644 ../doc/*.{html,txt} -t "${pkgdir}/usr/share/doc/${pkgname}"