summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 44e0e592871a01bf833aa9c68ed1b32765218d6f (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
# Contributor: Felix Yan <felixonmars@gmail.com>
 
pkgname=libxtract-git
_gitname=LibXtract
pkgver=0.282.7aa96fa
pkgrel=1
pkgdesc='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 "$_gitname"
  echo "0.$(git rev-list --count HEAD).$(git describe --always)"
}

build() {
  cd "$_gitname"
  make LIBRARY=shared
}

package () {
  cd "$_gitname"
  make PREFIX="$pkgdir/usr" LIBRARY=shared install

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