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')
15 https://ladspa.org/download/ladspa_sdk_$pkgver.tgz
16 fix-memleak-in-plugin-scanning.patch
18 sha512sums=('37f94aa52b5a2f8709528989dea289eb01342f3bcb9e85d0f4829ddd9d90b2934a113db11100f09375a50f6612122b78156fec916f2c78a22406253d5cb394c7'
19 'e80a575e6afe42f9d0ac1234a7832a29fb9362c7ab7b2d6b14cc3e6da6a9ba67af886cf09f1c0b78c161205084f705049fb4dc22fe2795efaeb7d94da90dc93e')
20 b2sums=('cfb80e8ced314d5cc62fcb7f0b82e58f572503f2a732b2bb8a58343e8f69e417c0b0a2919bbb40629567fb331bf60a7f0c6f186db47e5b2651725b039526cdbb'
21 'b2235b41d9638cceb93a41452f1f0b710bc3f9264fe735972099244dfc8d98d354c7d15084d79b0bdfc4fa3f437f9368f81aa0ebdb7e39df5900fbbf172927c2')
24 cd ${pkgname}_sdk_$pkgver
25 patch -Np0 -i "../fix-memleak-in-plugin-scanning.patch"
26 # add LDFLAGS for full RELRO
27 sed -e "s#-O2#${CFLAGS} ${LDFLAGS}#" -i src/Makefile
31 make -C ${pkgname}_sdk_$pkgver/src
36 INSTALL_PLUGINS_DIR="$pkgdir/usr/lib/ladspa/"
37 INSTALL_INCLUDE_DIR="$pkgdir/usr/include/"
38 INSTALL_BINARY_DIR="$pkgdir/usr/bin/"
40 -C ${pkgname}_sdk_$pkgver/src
42 make "${make_options[@]}"
43 install -vDm 644 ${pkgname}_sdk_$pkgver/doc/*.{html,txt} -t "$pkgdir/usr/share/doc/$pkgname"