summaryrefslogtreecommitdiffstats
path: root/main/libvorbis/APKBUILD
blob: 3c0553cb79d891667f2ecc1d2cc9bbb867f11a82 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libvorbis
pkgver=1.3.4
pkgrel=0
pkgdesc="Vorbis codec library"
url="http://www.xiph.org/ogg/vorbis/"
arch="all"
license="custom"
subpackages="$pkgname-dev $pkgname-doc"
depends=
depends_dev="libogg-dev"
makedepends="$depends_dev"
#source="http://people.xiph.org/~giles/2008/$pkgname-$pkgver.tar.gz"
source="http://downloads.xiph.org/releases/vorbis/libvorbis-$pkgver.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la

	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
md5sums="8851c593a52d1ef9c526d95174873852  libvorbis-1.3.4.tar.gz"
sha256sums="eee09a0a13ec38662ff949168fe897a25d2526529bc7e805305f381c219a1ecb  libvorbis-1.3.4.tar.gz"
sha512sums="5d380cdd2f36b1fe74d7ede0747d3176f951a23bf462a237f2910a2dd9af11a48dc88d8927d0d54831ee6e0c2f5dbbdd606bf3da54d61c26187c7e728decc660  libvorbis-1.3.4.tar.gz"