summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c9e451bc9ed625fa946c7212eda0e9413fb4d46d (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: Felix Yan <felixonmars@gmail.com>
 
pkgname=libxtract-git
_gitname=LibXtract
pkgver=0.159.b8c8c2c
pkgrel=1
pkgdesc='A simple, portable, lightweight library of audio feature extraction functions'
url='https://github.com/jamiebullock/LibXtract'
arch=('i686' 'x86_64')
license=('custom')
depends=('glibc')
makedepends=('git')
provides=('libxtract')
conflicts=('libxtract')
source=("git://github.com/jamiebullock/LibXtract.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_gitname"
  echo "0.$(git rev-list --count HEAD).$(git describe --always)"
}

build() {
  cd "$srcdir/$_gitname"
  sh autogen.sh
  ./configure --prefix='/usr' # --enable-pd_example
  make
}
package ()
{
  cd "$srcdir/$_gitname"
  make DESTDIR="$pkgdir" install

  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}