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

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

pkgver() {
  cd grandorgue
  git log -1 --pretty=%aI | sed 's/\+.*//g;s/[^0-9]/\./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
}