aboutsummaryrefslogtreecommitdiffstats
path: root/main/wavpack/APKBUILD
blob: 86aa3e6dbfe780242c316765c8c210922e287b4d (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
55
56
57
58
59
60
61
# Contributor: Carlo Landmeter
# Maintainer:  Natanael Copa <ncopa@alpinelinux.org>
pkgname=wavpack
pkgver=4.70.0
pkgrel=3
pkgdesc="Audio compression format with lossless, lossy, and hybrid compression modes"
url="http://www.wavpack.com/"
arch="all"
license="BSD"
depends=""
makedepends="autoconf automake libtool"
install=
subpackages="$pkgname-dev $pkgname-doc"
source="http://www.wavpack.com/${pkgname}-${pkgver}.tar.bz2
		iconv-underlinking.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	libtoolize --force && aclocal && autoconf && automake --add-missing || return 1
}

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
	rm "$pkgdir"/usr/lib/*.la
}

md5sums="4c0186ef0dc8367ce5cd7cc0f398b714  wavpack-4.70.0.tar.bz2
262979a78da1ff825243352c7bfb691e  iconv-underlinking.patch"
sha256sums="2cade379b0aba99fbc4e442ccc6dac6c609f6212e46516a083e24c8c364430a4  wavpack-4.70.0.tar.bz2
e6245c0ee10fa6600dbe7947fb1cb5cf8fad7b3b0409d026ead0c1faf6ac11e0  iconv-underlinking.patch"
sha512sums="6a93e36b3bea5b410142416b4b0329c5f65031418cdd303d395ca2aaad2a1ab02987b9a329dec6d14fe9387a3d5978caaf6345056eece24c5ad0ae9273349449  wavpack-4.70.0.tar.bz2
d0af2b03753ecfec1a9e36460dd85970c4cae0b6dec36ac7e6a7a9a06aaa22e19467224104f3c6b14efdd59a4df28f2c6e6177866ce2b7feed1b7c4b7bb5f33c  iconv-underlinking.patch"