sbcl rebuild
[arch-packages.git] / libsndfile / repos / extra-x86_64 / PKGBUILD
blob0b0843f53756a89eccd4dc43d92b3d979d1da4df
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 pkgname=libsndfile
4 pkgver=1.1.0
5 pkgrel=2
6 pkgdesc="A C library for reading and writing files containing sampled audio data"
7 arch=(x86_64)
8 url="https://libsndfile.github.io/libsndfile/"
9 license=(LGPL2.1)
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)
14 options=(debug)
15 source=(https://github.com/$pkgname/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.xz{,.asc})
16 sha512sums=('d01696a8a88a4444e5eb91a137cf7b26b55b12c1fe3b648653f7e78674bbdf61870066216c9ff2f6a1e63bdf7b558af9a759480cf6523b607d29347b12762006'
17             'SKIP')
18 b2sums=('ff2d27bff460c4d3c549bdf70c84c6f17a2c3e10674a44216ed83e657e603ddfbc33afe0827676fc4f5dc7745a9fb6aa866023fe589d0c00714477e3a246e5f2'
19         'SKIP')
20 validpgpkeys=(
21   '6A91A5CF22C24C99A35E013FCFDCF91FB242ACED'  # Erik de Castro Lopo <erikd@mega-nerd.com>
22   '9B1CFD2E92239C4B288E025F9D0D1F1CCB35FF8C'  # evpobr evpobr@gmail.com
23   '31D95CAB6D80D262244A1750A47620E801E47E95'  # David Seifert soap@gentoo.org
26 build() {
27   # tests can only be built with static libs
28   cmake -DCMAKE_INSTALL_PREFIX=/usr \
29         -DCMAKE_BUILD_TYPE=None \
30         -Wno-dev \
31         -B build-test \
32         -S $pkgname-$pkgver
33   make VERBOSE=1 -C build-test
35   cmake -DCMAKE_INSTALL_PREFIX=/usr \
36         -DCMAKE_BUILD_TYPE=None \
37         -DBUILD_SHARED_LIBS=ON \
38         -Wno-dev \
39         -B build \
40         -S $pkgname-$pkgver
41   make VERBOSE=1 -C build
44 check() {
45   make test -C build-test
48 package() {
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"