# Contributor: Sergei Lukin <sergej.lukin@gmail.com> # Contributor: Carlo Landmeter # Maintainer: pkgname=wavpack pkgver=5.1.0 pkgrel=4 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 cve2018-19840.patch cve2018-19841.patch " # secfixes: # 5.1.0-r4: # - CVE-2018-19840 # - CVE-2018-19840 # 5.1.0-r0: # - CVE-2016-10169 # - CVE-2016-10170 # - CVE-2016-10171 # - CVE-2016-10172 build() { cd "$builddir" local _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() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="4c31616ae63c3a875afa20f26ce935f7a8f9921e2892b4b8388eca3ccd83b2d686f43eed8b9ec1dead934a1148401b9dced3b05f509b7942c48d7af31cf80a54 wavpack-5.1.0.tar.bz2 67d02dd744c638d126cf5a894d1ff2c39726bd4d3771ef7410ea782e5c9a0f9341909432bd4bea9b8959891c38699601c1aac2da6e0eaddaa5a4d679e7f58dd2 cve2018-19840.patch dba007fa8cb2537b6f6c8ee559a98e501e948260ce7e7af7d3fdc8c9145bbbbf85c8fed8030de354459c4b08d3015a0ea769a948636bdfd66e567c0a2d2493c6 cve2018-19841.patch"