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

pkgname=qpiano-git
_pkgname=qpiano
pkgver=r1109.09d8f71
pkgrel=1
pkgdesc="MIDI file/player that teaches you how to play the piano"
url="https://github.com/glixx/QPiano/"
depends=('qt5-base' 'alsa-lib' 'ftgl' 'hicolor-icon-theme' 'desktop-file-utils' 'ttf-dejavu')
makedepends=('git' 'cmake')
conflicts=(qpiano)
license=('GPL3')
arch=('x86_64' 'i686')
arch=('any')
source=("${pkgname}"::'git+https://github.com/glixx/QPiano.git')
md5sums=('SKIP')

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

prepare() {
  cd "${srcdir}/${pkgname}"
  cd translations
  for i in *.ts
  do
    lrelease "$i"
  done
} 
 

build() {
  install -d ${srcdir}/${pkgname}/build
  cd ${srcdir}/${pkgname}/build
  cmake ../src 
  make
}

package() {
  cd ${srcdir}/${pkgname}
  make DESTDIR=$pkgdir install -C build 
}

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