From 38047fd8420524c7b42c84f7c16e82ff0e60c9f8 Mon Sep 17 00:00:00 2001 From: TBK Date: Fri, 1 Jan 2021 17:45:58 +0100 Subject: community/faudio: move from testing --- community/faudio/APKBUILD | 37 +++++++++++++++++++++++++++++++++++++ testing/faudio/APKBUILD | 37 ------------------------------------- 2 files changed, 37 insertions(+), 37 deletions(-) create mode 100644 community/faudio/APKBUILD delete mode 100644 testing/faudio/APKBUILD diff --git a/community/faudio/APKBUILD b/community/faudio/APKBUILD new file mode 100644 index 00000000000..6b197c4e5bf --- /dev/null +++ b/community/faudio/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: TBK +# Maintainer: TBK +pkgname=faudio +pkgver=21.01 +pkgrel=0 +pkgdesc="Accuracy-focused XAudio reimplementation for open platforms" +url="https://fna-xna.github.io/" +arch="all !mips !mips64" +license="Zlib" +makedepends="cmake 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() { + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake -B build \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=1 \ + -DBUILD_TESTS=1 + make -C build +} + +check() { + cd build + ./faudio_tests +} + +package() { + make -C build DESTDIR="$pkgdir" install +} + +sha512sums="69405a28fdf3ff5026992bdd1d40d61653b834dac3ef2697a0e794deac2fa6257fe74b19d2fe225ce25a1ae3caec7082106f5ab6ea6109cc61e520b903d35b80 faudio-21.01.tar.gz" diff --git a/testing/faudio/APKBUILD b/testing/faudio/APKBUILD deleted file mode 100644 index 6b197c4e5bf..00000000000 --- a/testing/faudio/APKBUILD +++ /dev/null @@ -1,37 +0,0 @@ -# Contributor: TBK -# Maintainer: TBK -pkgname=faudio -pkgver=21.01 -pkgrel=0 -pkgdesc="Accuracy-focused XAudio reimplementation for open platforms" -url="https://fna-xna.github.io/" -arch="all !mips !mips64" -license="Zlib" -makedepends="cmake 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() { - if [ "$CBUILD" != "$CHOST" ]; then - CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" - fi - cmake -B build \ - -DCMAKE_BUILD_TYPE=None \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=lib \ - -DBUILD_SHARED_LIBS=1 \ - -DBUILD_TESTS=1 - make -C build -} - -check() { - cd build - ./faudio_tests -} - -package() { - make -C build DESTDIR="$pkgdir" install -} - -sha512sums="69405a28fdf3ff5026992bdd1d40d61653b834dac3ef2697a0e794deac2fa6257fe74b19d2fe225ce25a1ae3caec7082106f5ab6ea6109cc61e520b903d35b80 faudio-21.01.tar.gz" -- cgit v1.2.3