* update libsoxr to 0.1.3-3
This commit is contained in:
parent
82dc063fb1
commit
5a450a48d1
@ -6,50 +6,40 @@
|
|||||||
|
|
||||||
pkgname=libsoxr
|
pkgname=libsoxr
|
||||||
pkgver=0.1.3
|
pkgver=0.1.3
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc='The SoX Resampler library that aims to give fast and high quality results for any constant resampling ratio'
|
pkgdesc='The SoX Resampler library that aims to give fast and high quality results for any constant resampling ratio'
|
||||||
arch=(x86_64 powerpc64le powerpc riscv64)
|
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
||||||
url='https://sourceforge.net/p/soxr/wiki/Home/'
|
url=https://sourceforge.net/p/soxr/wiki/Home/
|
||||||
license=('GPL')
|
license=(GPL)
|
||||||
depends=('gcc-libs')
|
depends=(gcc-libs)
|
||||||
makedepends=('cmake')
|
makedepends=(
|
||||||
source=("https://downloads.sourceforge.net/project/soxr/soxr-$pkgver-Source.tar.xz")
|
cmake
|
||||||
sha1sums=('32ea46b1a8c0c15f835422892d02fce8286aec3c')
|
ninja
|
||||||
|
)
|
||||||
prepare() {
|
source=(https://downloads.sourceforge.net/project/soxr/soxr-$pkgver-Source.tar.xz)
|
||||||
if [[ -d build ]]; then
|
b2sums=('5b7078f71404b9ef83917dcabc0c99cf17fd625d3e033d1b934382a7b60e55e359931a6ab53f8adaf955c0d811d6cbf231cd6a226549560b3506a3867e845607')
|
||||||
rm -rf build
|
|
||||||
fi
|
|
||||||
mkdir build
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd build
|
cmake -S soxr-${pkgver}-Source -B build -G Ninja \
|
||||||
|
-DCMAKE_BUILD_TYPE=None \
|
||||||
cmake ../soxr-${pkgver}-Source \
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
-DCMAKE_BUILD_TYPE='Release' \
|
-DBUILD_EXAMPLES=OFF \
|
||||||
-DCMAKE_INSTALL_PREFIX='/usr' \
|
-DBUILD_SHARED_LIBS=ON \
|
||||||
-DBUILD_EXAMPLES='OFF' \
|
-DWITH_AVFFT=ON \
|
||||||
-DBUILD_SHARED_LIBS='ON' \
|
-DWITH_LSR_BINDINGS=ON \
|
||||||
-DWITH_AVFFT='ON' \
|
-DWITH_OPENMP=ON \
|
||||||
-DWITH_LSR_BINDINGS='ON' \
|
-DWITH_PFFFT=ON
|
||||||
-DWITH_OPENMP='ON' \
|
cmake --build build
|
||||||
-DWITH_PFFFT='ON'
|
|
||||||
make
|
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
cd build
|
ctest --test-dir build
|
||||||
|
|
||||||
make test
|
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd build
|
DESTDIR="${pkgdir}" cmake --install build
|
||||||
|
|
||||||
make DESTDIR="${pkgdir}" install
|
|
||||||
rm -rf "${pkgdir}"/usr/share/doc
|
rm -rf "${pkgdir}"/usr/share/doc
|
||||||
install -Dm644 ../soxr-${pkgver}-Source/LICENCE -t "${pkgdir}"/usr/share/licenses/libsoxr/
|
install -Dm 644 soxr-${pkgver}-Source/LICENCE -t "${pkgdir}"/usr/share/licenses/libsoxr/
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim: ts=2 sw=2 et:
|
# vim: ts=2 sw=2 et:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user