aboutsummaryrefslogtreecommitdiffstats
path: root/main/libebml/APKBUILD
blob: 9ba7aed6298df65f32d17a75ad64ec954aca1cf2 (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.4
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="58c848f85127032f23ab47b672484f45  libebml-1.3.4.tar.bz2"
sha256sums="c50d3ecf133742c6549c0669c3873f968e11a365a5ba17b2f4dc339bbe51f387  libebml-1.3.4.tar.bz2"
sha512sums="ebf5b71afe725e40ee6415463e51ca14810eecc2fef186caacd0269077f5febeb62623fd48674b21ea732f43a620d0c91603fa48d3f8d163284d1cf204642194  libebml-1.3.4.tar.bz2"