summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 30f47e01a164dc887cca352d07120e14732ed034 (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
# Maintainer: Daniel Bermond <dbermond@archlinux.org>

pkgname=libndi-git
pkgver=r14.gb2297ff
pkgrel=1
pkgdesc='Library to interact with Network Device Interface (NDI) streams (git version)'
arch=('x86_64')
url='https://code.videolan.org/jbk/libndi/'
license=('LGPL')
depends=('ffmpeg' 'libmicrodns')
makedepends=('git' 'meson')
provides=('libndi')
conflicts=('libndi')
source=('git+https://code.videolan.org/jbk/libndi.git')
sha256sums=('SKIP')

pkgver() {
    printf 'r%s.g%s' "$(git -C libndi rev-list --count HEAD)" "$(git -C libndi rev-parse --short HEAD)"
}

build() {
    arch-meson build libndi
    ninja -v -C build
}

check() {
    ninja -v -C build test
}

package() {
    DESTDIR="$pkgdir" ninja -v -C build install
}