summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8eed255d603de7707df9843f452b8de7aa65b218 (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
# Maintainer: Jean-Michaƫl Celerier <jeanmichael.celerier at gmail dot com>
pkgname=jamomacore-git
pkgver=1.0b1
pkgrel=3
pkgdesc="The Jamoma Frameworks"
arch=('x86_64')
url="http://www.jamoma.org"
license=('BSD')
groups=()
depends=('portaudio' 'libxml2')
makedepends=('git' 'ninja' 'cmake')
provides=('jamomacore')
conflicts=()
replaces=()
backup=()
options=()
install=
source=()
noextract=()


_gitroot=https://github.com/Jamoma/JamomaCore
_gitname=JamomaCore
_gitbranch=master

build() {
  cd "$srcdir"

  if [[ -d "$_gitname" ]]; then
    (
      cd "$_gitname"
      git pull
    )
  else
    git clone --depth=1 "$_gitroot" "$_gitname"
    (
      cd "$_gitname"
      git checkout "$_gitbranch"
    )
  fi

  mkdir -p "$srcdir/$_gitname-build"
  cd "$srcdir/$_gitname-build"
  cmake -GNinja -DCMAKE_INSTALL_PREFIX="/usr" "$srcdir/$_gitname"
  ninja
}

package() {
  cd "$srcdir/$_gitname-build"
  DESTDIR="$pkgdir/" ninja install
  install -D -m644 "$srcdir/$_gitname/License.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}