summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1844db806c5fcdbf0f8e4f2167554468ed1b27ca (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
# Maintainer: Klaus Fröhlich <arch@sclause.net>

pkgname=grandorgue-git
pkgver=1.0
_branch=master
pkgrel=1
pkgdesc='git-version of the Virtual Pipe Organ GrandOrgue'
arch=('i686' 'x86_64')
url='https://github.com/e9925248/grandorgue'
license=('GPL')
depends=(fftw
  wavpack
  wxgtk2
  alsa-lib
  libglvnd
  jack)
makedepends=(cmake
  git
  docbook-xsl
  zip
  po4a
  gettext)
#optdepends=('lame: MP3 export')
#install=musescore.install
source=("git+$url.git#branch=$_branch")
md5sums=('SKIP')

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

build() {
  if [ ! -d gobuild ]; then
    mkdir gobuild
  fi
  cd gobuild
  cmake -DCMAKE_BUILD_TYPE=Release \
  -DCMAKE_INSTALL_PREFIX="/usr" \
   -G "Unix Makefiles" ../grandorgue
  make
}

package() {
  cd gobuild
  make DESTDIR="${pkgdir}" SUFFIX="-git" LABEL="Git Build" install
}