aboutsummaryrefslogtreecommitdiffstats
path: root/main/soxr/APKBUILD
blob: feb9441524e0b8853e887dc1c637657d9ec5b2c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer:
pkgname=soxr
pkgver=0.1.1
pkgrel=0
pkgdesc="High quality, one-dimensional sample-rate conversion library"
url="http://sourceforge.net/projects/soxr/"
arch="all"
license="LGPL2"
depends=""
depends_dev="cmake"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="saveas-http://sourceforge.net/projects/$pkgname/files/$pkgname-$pkgver-Source.tar.xz/download/$pkgname-$pkgver.tar.xz"
_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="805651a245ead381c82fad6247af5968  soxr-0.1.1.tar.xz"
sha256sums="dcc16868d1a157079316f84233afcc2b52dd0bd541dd8439dc25bceb306faac2  soxr-0.1.1.tar.xz"
sha512sums="377d9c0bb72cd673f89021a86da18861d35ab52f773afd97b6b5f7a2fa8e78865f3484cab4b795ceafacbbb34be6b77efeaaed75c66a839d5e891d70f00d6679  soxr-0.1.1.tar.xz"