summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 89bb1835423e899458daa57272af9f4b25349d0c (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
# Maintainer: Jose Riha <jose1711 gmail com>

pkgname=nootka-git
pkgver=r3683.29c8ac7e
pkgrel=1
pkgdesc="Tool for learning classical score notation (git)"
arch=('x86_64' 'i686')
url="http://nootka.sourceforge.net/"
license=('GPL3')
depends=('qt5-base' 'fftw' 'shared-mime-info' 'libvorbis' 'soundtouch' 'alsa-lib')
optdepends=(
'libpulse: for PulseAudio'
'jack: for JACK'
'qt5-translations: for other languages support'
)
conflicts=('nootka' 'nootka-hg')
replaces=('nootka-hg')
makedepends=('cmake' 'qt5-base' 'fftw' 'libvorbis' 'soundtouch' 'alsa-lib' 'git')
source=("${pkgname}"::'git+https://www.opencode.net/seelook/nootka.git')
md5sums=('SKIP')

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


build() {
  cd "$srcdir/nootka-git"
  [ ! -d build ] && mkdir build
  cd build
  cmake .. -DCMAKE_INSTALL_PREFIX='/usr'
  make
}

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