Commit edba3497 authored by Antoni Aloy Torrens's avatar Antoni Aloy Torrens Committed by alice
Browse files

community/libsoundio: move from testing

parent aa5d3741
# Maintainer: Mark Jynx <markjynx@cock.li>
# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
# Contributor: Mark Jynx <markjynx@cock.li>
pkgname="libsoundio"
pkgver="2.0.0"
pkgrel=1
pkgrel=2
pkgdesc="C library for cross-platform real-time audio input and output"
url="http://libsound.io"
arch="all"
options="!check" # Tests are not automated
license="MIT"
depends_dev="alsa-lib-dev"
makedepends="cmake $depends_dev"
makedepends="cmake samurai $depends_dev"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/andrewrk/libsoundio/archive/$pkgver.tar.gz"
......@@ -16,8 +17,8 @@ build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake \
-DCMAKE_BUILD_TYPE=None \
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_STATIC_LIBS=OFF \
......@@ -25,11 +26,11 @@ build() {
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
${CMAKE_CROSSOPTS} .
make
cmake --build build
}
package() {
make DESTDIR="$pkgdir" install
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="347a9be1789a41e778ea8d0efa1d00e03e725a4ab65e3aaf6c71e49138643f08a50a81bd60087d86a3b4d63beaeec617e47ba6b81f829ece8a3ac17418eb5309 libsoundio-2.0.0.tar.gz"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment