Date: Wednesday, December 21, 2022 @ 16:28:50
Author: alucryd
Revision: 464687
archrelease: copy trunk to extra-x86_64
Added:
libsoxr/repos/extra-x86_64/PKGBUILD
(from rev 464686, libsoxr/trunk/PKGBUILD)
Deleted:
libsoxr/repos/extra-x86_64/PKGBUILD
----------+
PKGBUILD | 98 +++++++++++++++++++++++++++----------------------------------
1 file changed, 44 insertions(+), 54 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-12-21 16:28:41 UTC (rev 464686)
+++ PKGBUILD 2022-12-21 16:28:50 UTC (rev 464687)
@@ -1,54 +0,0 @@
-# Maintainer: Maxime Gauduin <[email protected]>
-# Contributor: Anatol Pomozov
-# Contributor: JSpaces <[email protected]>
-# Contributor: Triode <[email protected]>
-
-pkgname=libsoxr
-pkgver=0.1.3
-pkgrel=2
-pkgdesc='The SoX Resampler library that aims to give fast and high quality
results for any constant resampling ratio'
-arch=('x86_64')
-url='https://sourceforge.net/p/soxr/wiki/Home/'
-license=('GPL')
-depends=('gcc-libs')
-makedepends=('cmake')
-source=("https://downloads.sourceforge.net/project/soxr/soxr-$pkgver-Source.tar.xz")
-sha1sums=('32ea46b1a8c0c15f835422892d02fce8286aec3c')
-
-prepare() {
- if [[ -d build ]]; then
- rm -rf build
- fi
- mkdir build
-}
-
-build() {
- cd build
-
- cmake ../soxr-${pkgver}-Source \
- -DCMAKE_BUILD_TYPE='Release' \
- -DCMAKE_INSTALL_PREFIX='/usr' \
- -DBUILD_EXAMPLES='OFF' \
- -DBUILD_SHARED_LIBS='ON' \
- -DWITH_AVFFT='ON' \
- -DWITH_LSR_BINDINGS='ON' \
- -DWITH_OPENMP='ON' \
- -DWITH_PFFFT='ON'
- make
-}
-
-check() {
- cd build
-
- make test
-}
-
-package() {
- cd build
-
- make DESTDIR="${pkgdir}" install
- rm -rf "${pkgdir}"/usr/share/doc
- install -Dm644 ../soxr-${pkgver}-Source/LICENCE -t
"${pkgdir}"/usr/share/licenses/libsoxr/
-}
-
-# vim: ts=2 sw=2 et:
Copied: libsoxr/repos/extra-x86_64/PKGBUILD (from rev 464686,
libsoxr/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-12-21 16:28:50 UTC (rev 464687)
@@ -0,0 +1,44 @@
+# Maintainer: Maxime Gauduin <[email protected]>
+# Contributor: Anatol Pomozov
+# Contributor: JSpaces <[email protected]>
+# Contributor: Triode <[email protected]>
+
+pkgname=libsoxr
+pkgver=0.1.3
+pkgrel=3
+pkgdesc='The SoX Resampler library that aims to give fast and high quality
results for any constant resampling ratio'
+arch=(x86_64)
+url=https://sourceforge.net/p/soxr/wiki/Home/
+license=(GPL)
+depends=(gcc-libs)
+makedepends=(
+ cmake
+ ninja
+)
+source=(https://downloads.sourceforge.net/project/soxr/soxr-$pkgver-Source.tar.xz)
+b2sums=('5b7078f71404b9ef83917dcabc0c99cf17fd625d3e033d1b934382a7b60e55e359931a6ab53f8adaf955c0d811d6cbf231cd6a226549560b3506a3867e845607')
+
+build() {
+ cmake -S soxr-${pkgver}-Source -B build -G Ninja \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_EXAMPLES=OFF \
+ -DBUILD_SHARED_LIBS=ON \
+ -DWITH_AVFFT=ON \
+ -DWITH_LSR_BINDINGS=ON \
+ -DWITH_OPENMP=ON \
+ -DWITH_PFFFT=ON
+ cmake --build build
+}
+
+check() {
+ ctest --test-dir build
+}
+
+package() {
+ DESTDIR="${pkgdir}" cmake --install build
+ rm -rf "${pkgdir}"/usr/share/doc
+ install -Dm 644 soxr-${pkgver}-Source/LICENCE -t
"${pkgdir}"/usr/share/licenses/libsoxr/
+}
+
+# vim: ts=2 sw=2 et: