summaryrefslogtreecommitdiff
path: root/testing/faudio/APKBUILD
blob: 3b4af0e16eef48806856957fe8d95f9cdffbd756 (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.06
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="4727a97eb24177ed8263e95f79faf7a43bd512f1ebdc2212e069b4ac3326af053b7bda1f0995ca505fa5cf27e092cfbb89def8df4437393ca82e4c153ad3573a  faudio-20.06.tar.gz"