blob: e61d618dc166f37956d939b246f4911904175828 (
plain)
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
38
39
40
41
42
43
|
# Maintainer: Christoph Gysin <christoph.gysin@gmail.com>
# Contributor: Sahan Fernando <sahan.h.fernando@gmail.com>
_pkgname=libsoundio
pkgname=${_pkgname}-git
pkgver=2.0.0.5.g49a1f78
pkgrel=2
pkgdesc='A C99 library providing cross-platform audio input and output'
arch=('i686' 'x86_64')
url='https://www.github.com/andrewrk/libsoundio'
license=('MIT')
source=('git+https://github.com/andrewrk/libsoundio.git')
depends=('alsa-lib' 'glibc' 'jack')
makedepends=('git' 'cmake')
provides=('libsoundio')
conflicts=('libsoundio' 'libsoundio-debug')
md5sums=('SKIP')
pkgver() {
cd $_pkgname
git describe --long | sed -e 's/-/./g'
}
build() {
cmake \
-B build \
-S "$_pkgname" \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=lib \
-D BUILD_EXAMPLE_PROGRAMS=OFF \
-D BUILD_TESTS=OFF \
-D BUILD_STATIC_LIBS=OFF \
-D ENABLE_JACK=ON \
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 "$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|