summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4732d767abdcdc21bd6cd4eec4048543497295a0 (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
# Maintainer: Alexey Galakhov <agalakhov@gmail.com>

pkgname='rtpmidid-git'
pkgver=r287.978e076
pkgrel=1
pkgdesc="RTP MIDI User Space Driver Daemon"
arch=('i686' 'x86_64')
url='https://github.com/davidmoreno/rtpmidid'
license=('GPL3')
depends=('alsa-lib' 'fmt' 'avahi')
# aww, moved away from fltk
makedepends=('git' 'cmake')
provides=('rtpmidid')
conflicts=('rtpmidid')
source=('rtpmidid-git::git+https://github.com/davidmoreno/rtpmidid.git')
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  #git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "$pkgname"
}

build() {
  cd "$pkgname"
  make build
}

package() {
  cd "$pkgname"
  make PREFIX="$pkgdir" install
}