aboutsummaryrefslogtreecommitdiffstats
path: root/main/libebml/APKBUILD
blob: 94668b1d5242c721faf63a21d61746a35bf19aa9 (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
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libebml
pkgver=1.3.1
pkgrel=0
pkgdesc="a C++ library to parse Extensible Binary Meta-Language files"
url="http://www.matroska.org/"
arch="all"
license="LGPL"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://dl.matroska.org/downloads/$pkgname/$pkgname-$pkgver.tar.bz2"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	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"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		|| return 1
	make || return
}

package() {
	cd "$_builddir"
	make install DESTDIR="$pkgdir"
}

md5sums="2d5a0e502fabedfded2a890c6b5513a5  libebml-1.3.1.tar.bz2"
sha256sums="195894b31aaca55657c9bc157d744f23b0c25597606b97cfa5a9039c4b684295  libebml-1.3.1.tar.bz2"
sha512sums="b42d198611e480a4938fe95b920f6ee6ca37453f9551990e4310ed82651f93284f1de1d871357b6280219634bbbf6a98d4ac988e25e7bd7b5bbf5c0ba5766334  libebml-1.3.1.tar.bz2"