summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3ea7351ed6279a725213e916517d93d290197ea1 (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
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>

_pkgname=lv2lint
pkgname="${_pkgname}-git"
pkgver=0.13.1.r244.29dc320
pkgrel=1
pkgdesc="Check whether a given LV2 plugin is up to the specification"
arch=('i686' 'x86_64')
url="https://github.com/OpenMusicKontrollers/lv2lint"
license=('Artistic2.0')
depends=('curl' 'libelf' 'lilv')
makedepends=('git' 'meson')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${_pkgname}::git+https://github.com/OpenMusicKontrollers/${_pkgname}.git")
md5sums=('SKIP')


pkgver() {
  cd "${srcdir}/${_pkgname}"

  ver=$(cat VERSION)
  echo "$ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${_pkgname}"

  meson --prefix /usr -Donline-tests=enabled -Delf-tests=enabled build
  ninja -v -C build reconfigure
  ninja -v -C build
}

package() {
  cd "${srcdir}/${_pkgname}"

  DESTDIR="$pkgdir" ninja -C build install
}

# vim:set ts=2 sw=2 et: