blob: 6e72383ae65ac24c709e3ff7f27c842e99d436ac (
plain)
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
|
# Contributor: Carlo Landmeter
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=wavpack
pkgver=4.75.0
pkgrel=0
pkgdesc="Audio compression format with lossless, lossy, and hybrid compression modes"
url="http://www.wavpack.com/"
arch="all"
license="BSD"
depends=""
makedepends=""
install=
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.wavpack.com/${pkgname}-${pkgver}.tar.bz2"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
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 \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
md5sums="14e49c65efd0f3b0dea708e176a112d2 wavpack-4.75.0.tar.bz2"
sha256sums="c63e5c2106749dc6b2fb4302f2260f4803a93dd6cadf337764920dc836e3af2e wavpack-4.75.0.tar.bz2"
sha512sums="57974cf63a19e9733fa3299202c6c5bd74a50374f2e74dac74432fe22b34343b9570282dbb4d3d4fa752927ce2b26e568dbd773b857825217f0da6a4df3848eb wavpack-4.75.0.tar.bz2"
|