summaryrefslogtreecommitdiff
path: root/community/rubberband/APKBUILD
blob: f8f0dd287913c8e3e2383105bd22c92cbdd0260f (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=rubberband
pkgver=3.2.1
pkgrel=1
pkgdesc="library for audio time-stretching and pitch-shifting"
url="https://www.breakfastquay.com/rubberband/"
arch="all"
license="GPL-2.0-only"
makedepends="
	fftw-dev
	ladspa-dev
	libsamplerate-dev
	libsndfile-dev
	lv2-dev
	meson
	vamp-sdk-dev
	"
checkdepends="boost-dev"
subpackages="$pkgname-libs $pkgname-static $pkgname-dev"
source="https://breakfastquay.com/files/releases/rubberband-$pkgver.tar.bz2"

# slight numerical rounding difference
case "$CARCH" in
x86|ppc64le) options="$options !check" ;;
esac

build() {
	# release needed since sets extra defines
	abuild-meson \
		--buildtype=release \
		-Db_lto=true \
		-Dresampler=libsamplerate \
		-Dfft=fftw \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --print-errorlogs --no-rebuild -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
c2278d874ebaeafa2ff6be4bdd3dea40235debce7ced8b93f1b73a93b5796b77ee5f6024cb539776f11bd936c2f100c084d7e91c006e81c1e6f3cf5eff602cbf  rubberband-3.2.1.tar.bz2
"