summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 96dadbf421ecf6112b8e264cf9d2e16ceee7ae31 (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
# Maintainer: milkii (milkii on freenode)
# Contributer: Colean <colean@colean.cc>
pkgname=bipscript-git
pkgver=r52.362a4c2
pkgrel=1
pkgdesc="A scripting language for interactive music"
arch=('i686' 'x86_64')
url="http://www.bipscript.org"
license=('GPL')
groups=('pro-audio')
depends=('boost-libs' 'fftw' 'lilv' 'liblo' 'portsmf')
makedepends=('cmake' 'boost' 'lv2')
provides=("bipscript")
conflicts=("bipscript")
source=("bipscript::git+https://gitlab.domainepublic.net/bipscript/bipscript"
        "bipscript.patch")
md5sums=('SKIP'
         'SKIP')

pkgver() {
  cd "bipscript"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

prepare() {
  patch -p2 -i "bipscript.patch"
  cd "bipscript"
}

build() {
  cd "bipscript"
	cmake -DCMAKE_INSTALL_PREFIX=/usr .
	make
}

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