summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 580939a6d66ce1364e03f4d3982ba963399d914d (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
# Maintainer: Yuriy Davygora <davygora@gmail.com>

_pkgname=audiality2
pkgname=$_pkgname-git
pkgver=1.9.4
pkgrel=2
pkgdesc='Realtime audio and music engine'
arch=(x86_64)
url='http://audiality.org/'
license=(zlib)

makedepends=(
  'base-devel'
  'git'
  'cmake'
)
depends=(
  'sdl'
  'jack'
)

conflicts=(
    "$_pkgname"
)
provides=(
    "$_pkgname"
)

source=("git+https://github.com/olofson/audiality2")
sha256sums=(SKIP)

pkgver() {
  cd "$_pkgname"
  git describe --tags --abbrev=0 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "$_pkgname"
  git checkout -b v$pkgver v$pkgver
}

build() {
  rm -rf build; mkdir build; cd build
  cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr "$srcdir/$_pkgname"
  make
}

package() {
  cd build
  DESTDIR="$pkgdir" make install
}