summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fc2d4583927e789529e5e35e15ac3e193f62a891 (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: neXyon <nexyon at gmail dot com>

pkgname=audaspace-git
pkgver=1.3.0.662.932739c
pkgrel=1
pkgdesc="A feature rich high level audio library."
arch=('i686' 'x86_64')
url="https://github.com/audaspace/audaspace"
license=('APACHE')
groups=()
depends=('python' 'openal' 'sdl' 'libsndfile' 'ffmpeg' 'jack')
makedepends=('gcc' 'cmake' 'git' 'python-setuptools')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=("git+https://github.com/audaspace/audaspace.git")
md5sums=('SKIP')
noextract=()
_gitname="audaspace"

pkgver() {
  cd $_gitname

  hash=$(git log --pretty=format:'%h' -n 1)
  revision=$(git rev-list --count HEAD)

  echo 1.3.0.$revision.$hash
}

build() {
  mkdir -p build
  cd build

  cmake ../$_gitname \
    -DCMAKE_INSTALL_PREFIX:PATH=/usr \
    -DDEFAULT_PLUGIN_PATH:PATH=/usr/share/audaspace/plugins || return 1

  make $MAKEFLAGS || return 1
}

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