summaryrefslogtreecommitdiff
path: root/user/wavpack/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-18 23:21:11 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-18 23:21:29 -0500
commitcabcf945011a1b1f0115378424b8936d9d7dbe14 (patch)
treebb973254e83308240eb53cdb455c5573d3bda4fc /user/wavpack/APKBUILD
parent3e48a440a5fe6f14babfe5c77d25302433c68b37 (diff)
downloadpackages-cabcf945011a1b1f0115378424b8936d9d7dbe14.tar.gz
packages-cabcf945011a1b1f0115378424b8936d9d7dbe14.tar.bz2
packages-cabcf945011a1b1f0115378424b8936d9d7dbe14.tar.xz
packages-cabcf945011a1b1f0115378424b8936d9d7dbe14.zip
user/wavpack: pull in, fix up
Diffstat (limited to 'user/wavpack/APKBUILD')
-rw-r--r--user/wavpack/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/user/wavpack/APKBUILD b/user/wavpack/APKBUILD
new file mode 100644
index 000000000..a98666d6e
--- /dev/null
+++ b/user/wavpack/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: Sergei Lukin <sergej.lukin@gmail.com>
+# Contributor: Carlo Landmeter
+# Maintainer:
+pkgname=wavpack
+pkgver=5.1.0
+pkgrel=3
+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.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"