Subject: testing/libsoundio

From: [email-masked]
Date: Mon, 02 Sep 2019 00:54:29 +0300

# Maintainer: Mark Jynx <[email-masked]>
pkgname="libsoundio"
pkgver="2.0.0"
pkgrel=0
pkgdesc="lightweight abstraction over various sound drivers"
url="https://libsound.io"
arch="all"
options="!check"  # No test suite.
license="MIT"
depends="alsa-lib-dev"
makedepends="cmake tree"
subpackages="$pkgname-dev"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/andrewrk/libsoundio/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr  \
		-DCMAKE_INSTALL_LIBDIR=lib   \
		-DBUILD_STATIC_LIBS=OFF      \
		-DBUILD_EXAMPLE_PROGRAMS=OFF \
		-DBUILD_TESTS=OFF            \
		.
	make
}

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

dev() {
	mkdir -p "$subpkgdir"/usr/include
	mv "$pkgdir/usr/include/soundio" "$subpkgdir/usr/include"
}

sha512sums="347a9be1789a41e778ea8d0efa1d00e03e725a4ab65e3aaf6c71e49138643f08a50a81bd60087d86a3b4d63beaeec617e47ba6b81f829ece8a3ac17418eb5309 
  libsoundio-2.0.0.tar.gz"