summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 52231e52dea3c9c4c7978b9b35170d1d8751aa37 (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
44
# Maintainer: Christoph Gysin <christoph.gysin@gmail.com>
# Contributor: Sahan Fernando <sahan.h.fernando@gmail.com>

_pkgname=libsoundio
pkgname=${_pkgname}-git
pkgver=1.1.0.14.g9c90c0b
pkgrel=1
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://github.com/andrewrk/libsoundio')
options=('!buildflags')
depends=('jack2')
makedepends=('cmake')
provides=('libsoundio')
conflicts=('libsoundio')
md5sums=('SKIP')

pkgver() {
    cd $_pkgname
    git describe --long | sed -e 's/-/./g'
}

build() {
    mkdir -p "$_pkgname.build"
    cd "$_pkgname.build"
    cmake \
        -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 \
        "$srcdir/$_pkgname"
    make
}

package() {
    make \
        -C "$_pkgname.build" \
        install DESTDIR="$pkgdir"
}