summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cef1a39d135114369e38a730b5ed5ff7b2ab7d55 (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
56
57
58
59
60
61
62
63
# Maintainer: Stefan Damm <autama@nurfuerspam.de>
pkgname=entropy-piano-tuner
pkgver=1.2.0.r27.gee7857a
pkgrel=1
pkgdesc="Free Software for Piano Tuning"
arch=('i686' 'x86_64')
url="https://gitlab.com/tp3/Entropy-Piano-Tuner"
license=('GPL3')
depends=('qtmidi-qt5' 'qwt' 'libuv' 'hicolor-icon-theme' 'qt5-multimedia' 'fftw' 'qt5-declarative')

source=(git+https://gitlab.com/tp3/Entropy-Piano-Tuner.git
        git+https://gitlab.com/chwick/fftw3-qmake.git
        git+https://github.com/libuv/libuv.git
        git+https://gitlab.com/chwick/qwt-lib.git
        git+https://gitlab.com/tp3/tp3log.git
        rpath.patch
        qwt-lib-qt5.15.patch)
md5sums=('SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'SKIP'
         'e7f34645ebe707be6d417f1f4bc31ebd'
         'ec874c86d32d0e4a7e4acbfb8262c86d')

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

prepare() {
  cd Entropy-Piano-Tuner

  git submodule init
  git config submodule.thirdparty/fftw3.url $srcdir/fftw3-qmake
  git config submodule.thirdparty/libuv/libuv.url $srcdir/libuv
  git config submodule.thirdparty/qwt-lib.url $srcdir/qwt-lib
  git config submodule.thirdparty/tp3log.url $srcdir/tp3log
  git submodule update

  patch -Np1 -i ../rpath.patch
  # Qt 5.15 broke QPainterPath stuff; fortunately it’s an easy fix.
  patch -Np1 -i ../qwt-lib-qt5.15.patch
}

build() {
  cd "Entropy-Piano-Tuner"

  rm -rf build
  mkdir build
  cd build

  qmake-qt5 -r .. "PKGDIR=$pkgdir/" "EPT_INSTALL_BIN_RDIR=usr/bin" "EPT_INSTALL_DATA_RDIR=usr/share" "EPT_INSTALL_LIB_RDIR=usr/lib"
  make
}

package() {
  cd "Entropy-Piano-Tuner/build"

  make install

  echo "Test"
}