# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=soxr pkgver=0.1.2 pkgrel=0 pkgdesc="High quality, one-dimensional sample-rate conversion library" url="https://sourceforge.net/projects/soxr/" arch="all" license="LGPL2" depends="" depends_dev="cmake" makedepends="$depends_dev" install="" subpackages="$pkgname-dev $pkgname-doc" source="$pkgname-$pkgver.tar.xz::https://sourceforge.net/projects/$pkgname/files/$pkgname-$pkgver-Source.tar.xz/download" _builddir="$srcdir"/$pkgname-$pkgver-Source build() { cd "$_builddir" cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DBUILD_TESTS=ON . make make test } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="0866fc4320e26f47152798ac000de1c0 soxr-0.1.2.tar.xz" sha256sums="54e6f434f1c491388cd92f0e3c47f1ade082cc24327bdc43762f7d1eefe0c275 soxr-0.1.2.tar.xz" sha512sums="ee902c1bc713e05b748f917d78222b68b5fe01d43f405e0954c21ce4d1ee494d01000caa79f696cb8d202c662a4c4d958b332dae034d6f929e0480abf27cd07c soxr-0.1.2.tar.xz"