summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c454f061addc9a917ce10c2b92984feb102a69b (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
# Maintainer: sekret, mail=$(echo c2VrcmV0QHBvc3Rlby5zZQo= | base64 -d)
_pkgname=hairless-midiserial
pkgname=$_pkgname-git
pkgver=0.r80.a558766
pkgrel=1
pkgdesc="Lightweight cross-platform GUI-based MIDI/Serial bridge"
arch=('i686' 'x86_64')
url="http://projectgus.github.io/hairless-midiserial"
license=('LGPL')
depends=('qt4')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$_pkgname::git+https://github.com/projectgus/$_pkgname.git")
md5sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "$_pkgname"
  git submodule update --init
  qmake-qt4
}

build() {
  cd "$_pkgname"
  make
}

package() {
  cd "$_pkgname"
  install -Dm755 "$_pkgname" "$pkgdir/usr/bin/$_pkgname"
}

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