[arch-commits] Commit in libsoxr/trunk (PKGBUILD)
Maxime Gauduin
alucryd at archlinux.org
Tue Mar 6 21:53:07 UTC 2018
Date: Tuesday, March 6, 2018 @ 21:53:06
Author: alucryd
Revision: 317955
upgpkg: libsoxr 0.1.3-1
Modified:
libsoxr/trunk/PKGBUILD
----------+
PKGBUILD | 69 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 38 insertions(+), 31 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-03-06 21:44:40 UTC (rev 317954)
+++ PKGBUILD 2018-03-06 21:53:06 UTC (rev 317955)
@@ -1,48 +1,55 @@
# $Id$
-# Maintainer: Anatol Pomozov
-# Contributor: JSpaces <jspace -aT- unseen -d0T- is>
-# Contributor: Triode <triode1 -aT- btinternet -d0t- com>
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Anatol Pomozov
+# Contributor: JSpaces <jspace at unseen.is>
+# Contributor: Triode <triode1 at btinternet.com>
pkgname=libsoxr
-pkgver=0.1.2
+pkgver=0.1.3
pkgrel=1
pkgdesc='The SoX Resampler library that aims to give fast and high quality results for any constant resampling ratio'
-arch=(x86_64)
+arch=('x86_64')
url='http://sourceforge.net/p/soxr/wiki/Home/'
-license=(GPL)
-depends=(gcc-libs)
-makedepends=(cmake)
-options=(!emptydirs)
-source=(http://downloads.sourceforge.net/project/soxr/soxr-$pkgver-Source.tar.xz)
-sha1sums=('3b990f91dc8dc08e70626cd5fb90deda0239c211')
+license=('GPL')
+depends=('gcc-libs')
+makedepends=('cmake')
+source=("http://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 soxr-$pkgver-Source
- cmake \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DBUILD_EXAMPLES=OFF \
- -DBUILD_SHARED_LIBS=ON \
- -DCMAKE_BUILD_TYPE=Release \
- -DVISIBILITY_HIDDENL=ON \
- -DWITH_AVFFT=ON \
- -DWITH_DOUBLE_PRECISION=ON \
- -DWITH_LSR_BINDINGS=ON \
- -DWITH_OPENMP=ON \
- -DWITH_PFFFT=ON \
- -DWITH_SIMD=ON \
- .
+ 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 soxr-$pkgver-Source
+ cd build
+
make test
}
package() {
- cd soxr-$pkgver-Source
-
- make DESTDIR="$pkgdir" install
- install -Dm644 LICENCE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
- rm -r "$pkgdir"/usr/share/doc/$pkgname/
+ 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:
More information about the arch-commits
mailing list