aboutsummaryrefslogtreecommitdiffstats
path: root/main/libsndfile/APKBUILD
blob: aa39a1b12c5be8563b3723a157ff3d372a8cda68 (plain) (blame)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Contributor: Sergei Lukin <sergej.lukin@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libsndfile
pkgver=1.0.28
pkgrel=8
pkgdesc="A C library for reading and writing files containing sampled sound"
url="http://www.mega-nerd.com/libsndfile"
arch="all"
license="LGPL-2.0-or-later"
subpackages="$pkgname-dev $pkgname-doc"
depends=
depends_dev="flac-dev libvorbis-dev libogg-dev"
makedepends="linux-headers alsa-lib-dev $depends_dev"
source="http://www.mega-nerd.com/$pkgname/files/$pkgname-$pkgver.tar.gz"

# sporadic testsuite failures on armhf
case $CARCH in arm*) options="!check";; esac

# secfixes:
#   1.0.28-r8:
#     - CVE-2018-19758
#     - CVE-2019-3832
#   1.0.28-r7:
#     - CVE-2018-19758
#   1.0.28-r6:
#     - CVE-2017-17456
#     - CVE-2017-17457
#     - CVE-2018-19661
#     - CVE-2018-19662
#   1.0.28-r4:
#     - CVE-2018-13139
#   1.0.28-r2:
#     - CVE-2017-12562
#   1.0.28-r0:
#     - CVE-2017-7585
#     - CVE-2017-7741
#     - CVE-2017-7742
#   1.0.28-r1:
#     - CVE-2017-8361
#     - CVE-2017-8362
#     - CVE-2017-8363
#     - CVE-2017-8365

build() {
	ac_cv_sys_largefile_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" \
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-sqlite \
		--enable-largefile
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}
sha512sums="890731a6b8173f714155ce05eaf6d991b31632c8ab207fbae860968861a107552df26fcf85602df2e7f65502c7256c1b41735e1122485a3a07ddb580aa83b57f  libsndfile-1.0.28.tar.gz"