1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: Anatol Pomozov
3 # Contributor: JSpaces <jspace@unseen.is>
4 # Contributor: Triode <triode1@btinternet.com>
9 pkgdesc='The SoX Resampler library that aims to give fast and high quality results for any constant resampling ratio'
11 url=https://sourceforge.net/p/soxr/wiki/Home/
18 source=(https://downloads.sourceforge.net/project/soxr/soxr-$pkgver-Source.tar.xz)
19 b2sums=('5b7078f71404b9ef83917dcabc0c99cf17fd625d3e033d1b934382a7b60e55e359931a6ab53f8adaf955c0d811d6cbf231cd6a226549560b3506a3867e845607')
22 cmake -S soxr-${pkgver}-Source -B build -G Ninja \
23 -DCMAKE_BUILD_TYPE=None \
24 -DCMAKE_INSTALL_PREFIX=/usr \
25 -DBUILD_EXAMPLES=OFF \
26 -DBUILD_SHARED_LIBS=ON \
28 -DWITH_LSR_BINDINGS=ON \
35 ctest --test-dir build
39 DESTDIR="${pkgdir}" cmake --install build
40 rm -rf "${pkgdir}"/usr/share/doc
41 install -Dm 644 soxr-${pkgver}-Source/LICENCE -t "${pkgdir}"/usr/share/licenses/libsoxr/