aboutsummaryrefslogtreecommitdiffstats
path: root/main/libmatroska/APKBUILD
blob: 09ee9443aec92711da2f723f7bf932deaae4084c (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=libmatroska
pkgver=1.4.2
pkgrel=0
pkgdesc="a C++ library to parse Matroska files"
url="http://www.matroska.org/"
arch="all"
license="LGPL"
depends=""
depends_dev="libebml-dev>=1.3.1"
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 1
}

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

md5sums="f8fe42003e072a42a19ed40405f9efdb  libmatroska-1.4.2.tar.bz2"
sha256sums="bea10320f1f1fd121bbd7db9ffc77b2518e8269f00903549c5425478bbf8393f  libmatroska-1.4.2.tar.bz2"
sha512sums="37b7e35c4db0a5265682f69e2ded251168f64499ab86fa228d9a4dde8a85edab7b8b60c722563c1fed27317cd0e94ee86322c18446430aae7cafeda20a90e549  libmatroska-1.4.2.tar.bz2"