1 # Maintainer: David Runge <dvzrv@archlinux.org>
6 pkgdesc="A C library for reading and writing files containing sampled audio data"
8 url="https://libsndfile.github.io/libsndfile/"
10 depends=(glibc opus speex)
11 makedepends=(alsa-lib cmake flac libogg libvorbis python sqlite)
12 optdepends=('alsa-lib: for sndfile-play')
13 provides=(libsndfile.so)
15 source=(https://github.com/$pkgname/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.xz{,.asc})
16 sha512sums=('d01696a8a88a4444e5eb91a137cf7b26b55b12c1fe3b648653f7e78674bbdf61870066216c9ff2f6a1e63bdf7b558af9a759480cf6523b607d29347b12762006'
18 b2sums=('ff2d27bff460c4d3c549bdf70c84c6f17a2c3e10674a44216ed83e657e603ddfbc33afe0827676fc4f5dc7745a9fb6aa866023fe589d0c00714477e3a246e5f2'
21 '6A91A5CF22C24C99A35E013FCFDCF91FB242ACED' # Erik de Castro Lopo <erikd@mega-nerd.com>
22 '9B1CFD2E92239C4B288E025F9D0D1F1CCB35FF8C' # evpobr evpobr@gmail.com
23 '31D95CAB6D80D262244A1750A47620E801E47E95' # David Seifert soap@gentoo.org
27 # tests can only be built with static libs
28 cmake -DCMAKE_INSTALL_PREFIX=/usr \
29 -DCMAKE_BUILD_TYPE=None \
33 make VERBOSE=1 -C build-test
35 cmake -DCMAKE_INSTALL_PREFIX=/usr \
36 -DCMAKE_BUILD_TYPE=None \
37 -DBUILD_SHARED_LIBS=ON \
41 make VERBOSE=1 -C build
45 make test -C build-test
49 depends+=(libFLAC.so libogg.so libvorbis.so libvorbisenc.so)
51 make DESTDIR="$pkgdir" install -C build
52 install -vDm 644 $pkgname-$pkgver/{AUTHORS,ChangeLog,README} -t "$pkgdir/usr/share/doc/$pkgname"