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

build() {
    mkdir build && cd build
    cmake .. \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX="/usr" \
        -DCMAKE_INSTALL_LIBDIR=lib \
        -DCMAKE_INSTALL_INCLUDEDIR=include/FAudio \
        -DFFMPEG=ON \
        -DBUILD_TESTS=1
    make
}

check() {
    cd "$builddir/build"
    ./faudio_tests
}

package() {
    cd "$builddir/build"
    make DESTDIR="$pkgdir" install
}

sha512sums="9ac26aca314d94e1c9c234022a966026d98dfd1ef27b3720e20f992b674a472d06c5c78d58b6225b994ac869eec7a5ca9e55dd0934fb440e1741f8da969330c8  faudio-19.06.07.tar.gz"