summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3f3d72515ee23f8c9ce0ef0afebc87c3f2f78c0d (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: aggraef@gmail.com
# Contributor: x@safe-mail.net where x stands for jbjunk
pkgname=osc2midi-git
pkgver=197.d46ec38
pkgrel=1
pkgdesc="OSC2MIDI is a highly configurable OSC to jack MIDI (and back) bridge for linux (git version)"
arch=('x86_64' 'i686')
url="https://github.com/ssj71/OSC2MIDI"
license=('GPL')
depends=('jack' 'liblo')
makedepends=('cmake')
provides=('osc2midi')
conflicts=('osc2midi')
source=("$pkgname::git+https://github.com/ssj71/OSC2MIDI.git")
md5sums=('SKIP')

pkgver() {
  cd $srcdir/$pkgname
  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
	cd "$srcdir/$pkgname"
	rm -rf build
	mkdir build
	cd build
	cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
	make
}

package() {
	cd "$srcdir/$pkgname"
	cd build
	make install DESTDIR="$pkgdir"
}