aboutsummaryrefslogtreecommitdiffstats
path: root/main/libebml/APKBUILD
blob: 7f1fce61ea2eaa8d8bbaff6eb48dd3b3d520b5db (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.3
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="a8b270482620970d9891958618b54d77  libebml-1.3.3.tar.bz2"
sha256sums="35fb44daa41961f94a0ac1b8f06801e88cc9bf2ad6f562ced8ab7c1f1a875499  libebml-1.3.3.tar.bz2"
sha512sums="3ae048b468272e5ff1dc813121c1addcbbe324cd466e4b43ccce5aca148095190c10196433db951529ff62c587cc2b9a3c0c713db7921825221babaf7d4e824d  libebml-1.3.3.tar.bz2"