summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0cd2a13ea964d04e2be0dbb9378647e761fcf998 (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
# Maintainer: Christoph Gysin <christoph.gysin@gmail.com>

pkgname=libsoundio
pkgver=2.0.1
_pkgver=$pkgver-7
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=("https://github.com/andrewrk/$pkgname/archive/$_pkgver.tar.gz")
depends=('jack')
makedepends=('cmake')
md5sums=('7a8d22fc28a5331e26ed318283f40d96')

build() {
  cmake \
    -B build \
    -S "$pkgname-$_pkgver" \
    -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-$_pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}