summaryrefslogtreecommitdiff
path: root/testing/faudio/APKBUILD
blob: 8e253a8cc60d21dbdb6aef5c4db14eef4891a8f4 (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
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname=faudio
pkgver=20.04
pkgrel=0
pkgdesc="Accuracy-focused XAudio reimplementation for open platforms"
url="https://fna-xna.github.io/"
arch="all !mips !mips64"
license="Zlib"
makedepends="cmake ffmpeg-dev sdl2-dev sdl2-static"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/FNA-XNA/FAudio/archive/$pkgver.tar.gz"
builddir="$srcdir/FAudio-$pkgver"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX="/usr" \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_INSTALL_INCLUDEDIR=include/FAudio \
		-DBUILD_SHARED_LIBS=1 \
		-DFFMPEG=ON \
		-DBUILD_TESTS=1
	make -C build
}

check() {
	cd build
	./faudio_tests
}

package() {
	make -C build DESTDIR="$pkgdir" install
}

sha512sums="23b50afe53394ac031bcc5b0905932578308f07eed4b155a51f5c82a0cc7f37d8d740d4b454cc51ba0f7704b032504df11a1181d02efe21803c4a0232b2e6e16  faudio-20.04.tar.gz"