aboutsummaryrefslogtreecommitdiffstats
path: root/main/wavpack/APKBUILD
blob: 781916e8a9375717deb06b35195bbea7892183e4 (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
# Contributor: Carlo Landmeter
# Maintainer:  Natanael Copa <ncopa@alpinelinux.org>
pkgname=wavpack
pkgver=4.60.1
pkgrel=3
pkgdesc="Audio compression format with lossless, lossy, and hybrid compression modes"
url="http://www.wavpack.com/"
arch="all"
license="custom"
depends=
makedepends="autoconf automake libtool"
if [ "$ALPINE_LIBC" != eglibc ]; then
	makedepends="$makedepends libiconv-dev"
fi
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 || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-mmx \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	install -m755 -d ${pkgdir}/usr/share/licenses/${pkgname} || return 1
	install -m644 license.txt ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
	rm "$pkgdir"/usr/lib/*.la
}

md5sums="7bb1528f910e4d0003426c02db856063  wavpack-4.60.1.tar.bz2
262979a78da1ff825243352c7bfb691e  iconv-underlinking.patch"