summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9030711ed20f395d3935583c326d9d1a2ef66768 (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
# Maintainer: Teteros <teteros at teknik dot io>
# Maintainer: Andrew O'Neill <andrew at meanjollies dot com>

_pkgname=Soundpipe
pkgname=soundpipe-git
pkgver=v1.6.0.r0.g39002ef
pkgrel=1
pkgdesc="A lightweight music DSP library."
arch=('i686' 'x86_64')
url="http://paulbatchelor.github.io/proj/soundpipe.html"
license=('MIT')
makedepends=('git' 'libsndfile')
provides=('soundpipe')
conflicts=('soundpipe')
source=("git://github.com/PaulBatchelor/$_pkgname.git")
md5sums=('SKIP')

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

build() {
    cd "$_pkgname"
    make
}

package() {
    cd "$_pkgname"

    PREFIX="$pkgdir/usr" make install -e
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    install -dm755 "$pkgdir/usr/share/doc/$pkgname"
    cp -a examples "$pkgdir/usr/share/doc/$pkgname"
}