~alpine/devel

For discussion of Alpine Linux development and developer support

testing/libsoundio

Details
Message ID
<32a000493829b2366141e034c9f1f5d5@cock.li>
DKIM signature
missing
Download raw message
# Maintainer: Mark Jynx <markjynx@cock.li>
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"