summaryrefslogtreecommitdiffstats
path: root/main/libmatroska/APKBUILD
blob: 808e6cca8ce8e46f7961e8d381c651958d8484d0 (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
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libmatroska
pkgver=1.4.1
pkgrel=0
pkgdesc="a C++ library to parse Matroska files"
url="http://www.matroska.org/"
arch="all"
license="LGPL"
depends=""
depends_dev="libebml-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"
	make -C make/linux
}

package() {
	cd "$_builddir"
	make -C make/linux install prefix="$pkgdir/usr"
}

md5sums="f61b2e5086f4bb9d24a43cc8af43a719  libmatroska-1.4.1.tar.bz2"
sha256sums="086f21873e925679babdabf793c3bb85c353d0cd79423543a3355e08e8a4efb7  libmatroska-1.4.1.tar.bz2"
sha512sums="06db4906f497cca4adc09b8e8588edddc840cca1fbbf9890491cbfa55f9f238ad7d8b86de687293a5caa15dbc2ae64ac8fcb05da062940017f346be46e9ba8e3  libmatroska-1.4.1.tar.bz2"