summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6e4dc0762e2ae9562f359ac100c8f665cfa41c0d (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
# Maintainer: David Runge <dvzrv@archlinux.org>

_name=new-session-manager
pkgname=new-session-manager-git
pkgver=1.5.3.r13.g7099c9f
pkgrel=1
pkgdesc="Audio session manager"
arch=(x86_64)
url="https://github.com/jackaudio/new-session-manager"
license=(GPL3)
depends=(gcc-libs glibc)
makedepends=(fltk git jack liblo meson)
optdepends=('fltk: for nsm-legacy-gui')
provides=(new-session-manager)
conflicts=(new-session-manager)
options=(debug)
source=(git+https://github.com/jackaudio/$_name)
sha512sums=('SKIP')
b2sums=('SKIP')

pkgver() {
  cd $_name
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g'
}

build() {
  arch-meson build $_name
  ninja -C build
}

package() {
  depends+=(libjack.so liblo.so)

  DESTDIR="$pkgdir" meson install -C build
  install -vDm 644 $_name/{CHANGELOG,README.md} -t "$pkgdir/usr/share/doc/$_name/"
}