summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0404b76b5d65512702058d73a9a00e4bc9e4d0f6 (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
# Maintainer:  VirtualTam <virtualtam@flibidi.net>
pkgname=midijoystick-git
pkgver=a98d0d6
pkgrel=1
pkgdesc="JACK client to map joystick buttons to MIDI events"
arch=('i686' 'x86_64')
url="https://github.com/osune/MidiJoystick"
license=('MIT')
depends=('gambit-c' 'jack')
makedepends=('git')
provides=('midijoystick')
_gitname="MidiJoystick"
source=(git://github.com/osune/${_gitname}.git)
sha256sums=(SKIP)

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

build() {
  cd ${_gitname}
  make
}

package() {
  cd ${_gitname}
  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -Dm755 "midijoystick" "${pkgdir}/usr/bin/midijoystick"
}