summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3b1a1fd1b10012c723e6080fd557285852579332 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Maintainer: JP Cimalando <jp-dev@inbox.ru>
pkgname=bambootracker-git
_pkgname=bambootracker
pkgver=0.4.5.r85.g4af2db7
pkgrel=1
epoch=
pkgdesc="YM2608 (OPNA) music tracker"
arch=('x86_64')
url="https://github.com/rerrahkr/BambooTracker"
license=('GPL2')
groups=()
depends=('qt5-base' 'jack' 'libpulse' 'hicolor-icon-theme')
makedepends=('git' 'qt5-tools')
checkdepends=()
optdepends=()
provides=("$_pkgname")
conflicts=("$_pkgname")
replaces=()
backup=()
options=()
install=
changelog=
source=("$_pkgname::git+https://github.com/rerrahkr/BambooTracker.git"
        'git+https://github.com/thestk/rtaudio'
        'git+https://github.com/thestk/rtmidi')
md5sums=('SKIP'
         'SKIP'
         'SKIP')
noextract=()
validpgpkeys=()

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

prepare() {
  cd "$_pkgname"
  git submodule init
  git config submodule.submodules/RtAudio/src.url $srcdir/rtaudio
  git config submodule.submodules/RtMidi/src.url $srcdir/rtmidi
  git submodule update
}

build() {
  cd "$_pkgname"
  qmake Project.pro CONFIG+=release CONFIG-=debug CONFIG+=use_jack CONFIG+=jack_has_rename CONFIG+=use_pulse PREFIX=/usr
  make -j1 qmake_all
  make
}

package() {
  cd "$_pkgname"
  make INSTALL_ROOT="$pkgdir" install
}