summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b4cb76bb65b3cd6ad51ca11f580c365e58522a7b (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
# Maintainer:  Vincent Grande <shoober420@gmail.com>
# Contributor: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=libsndfile-minimal-git
pkgver=1.0.28.r74.gbeee21e5
pkgrel=1
pkgdesc="C library for reading and writing files containing sampled sound"
arch=('i686' 'x86_64')
url="http://www.mega-nerd.com/libsndfile/"
license=('LGPL')
depends=('glibc' 'alsa-lib')
optdepends=('flac: flac support'
	    'libogg: ogg support'
	    'libvorbis: vorbis support')
makedepends=('git' 'autogen')
provides=('libsndfile')
conflicts=('libsndfile')
options=('staticlibs')
source=("git+https://github.com/erikd/libsndfile.git")
sha256sums=('SKIP')


pkgver() {
  cd "libsndfile"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "libsndfile"

  ./autogen.sh
  ./configure --prefix="/usr" --disable-sqlite --disable-bow-docs --disable-full-suite
  make
}

#check() {
#  cd "libsndfile"

#  make check
#}

package() {
  cd "libsndfile"

  make DESTDIR="$pkgdir" install
}