summaryrefslogtreecommitdiff
path: root/user/wavpack/APKBUILD
blob: db868c74f40c93d5fa2993e6977614dcde3f0b58 (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
63
# Contributor: Sergei Lukin <sergej.lukin@gmail.com>
# Contributor: Carlo Landmeter
# Maintainer: 
pkgname=wavpack
pkgver=5.2.0
pkgrel=1
pkgdesc="Audio compression format with lossless, lossy, and hybrid compression modes"
url="http://www.wavpack.com/"
arch="all"
options="!check"  # No test suite.
license="BSD-3-Clause"
depends=""
makedepends=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.wavpack.com/$pkgname-$pkgver.tar.bz2"

# secfixes:
#   5.2.0-r0:
#     - CVE-2018-6767
#     - CVE-2018-7253
#     - CVE-2018-7254
#     - CVE-2018-10536
#     - CVE-2018-10537
#     - CVE-2018-10538
#     - CVE-2018-10539
#     - CVE-2018-10540
#     - CVE-2019-11498
#     - CVE-2019-1010315
#     - CVE-2019-1010317
#     - CVE-2019-1010319
#   5.1.0-r4:
#     - CVE-2018-19840
#     - CVE-2018-19841
#   5.1.0-r0:
#     - CVE-2016-10169
#     - CVE-2016-10170
#     - CVE-2016-10171
#     - CVE-2016-10172

build() {
	_arch_opts=""
	case "$CARCH" in
	x86 | x86_64) _arch_opts="--enable-mmx" ;;
	esac

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-static \
		$_arch_opts
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="456da78fb5d01b33a8ed71b43cb6809a25ca0d54e53858b93bbb3eb26923bfa6de4c6a3c01caca947c0852aea74d1b14667205dae344148a01619e67eb2c7e71  wavpack-5.2.0.tar.bz2
67d02dd744c638d126cf5a894d1ff2c39726bd4d3771ef7410ea782e5c9a0f9341909432bd4bea9b8959891c38699601c1aac2da6e0eaddaa5a4d679e7f58dd2  cve2018-19840.patch"