aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mkvtoolnix/APKBUILD
blob: d2a3d8cf90b27f10260b91366b15630ffe8aac55 (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
47
48
49
50
51
52
53
54
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=mkvtoolnix
pkgver=7.3.0
pkgrel=0
pkgdesc="Set of tools to create, edit and inspect Matroska files"
url="http://www.bunkus.org/videotools/mkvtoolnix/index.html"
arch="all"
license="GPL"
depends=""
depends_dev="libmatroska-dev flac-dev libvorbis-dev boost-dev libiconv-dev
	zlib-dev file-dev libogg-dev"
makedepends="$depends_dev autoconf automake ruby bash"
install=""
subpackages="$pkgname-doc"
source="http://www.bunkus.org/videotools/mkvtoolnix/sources/mkvtoolnix-$pkgver.tar.xz"

_builddir="$srcdir"/mkvtoolnix-$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"
	./autogen.sh || return 1
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-gui \
		--without-curl \
		|| return 1
	./drake V=1 -j${JOBS} || return
}

package() {
	cd "$_builddir"
	./drake DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="190ce613bde843def89a499330ca779b  mkvtoolnix-7.3.0.tar.xz"
sha256sums="2cb09f926d16bfa8091a9f8fcbd63f6490bf1f2ce3280001f8d5c4798979d420  mkvtoolnix-7.3.0.tar.xz"
sha512sums="e725d8bbc97ca0cef0e281f8cfb3477555640bef5ce31fc9cf62d1ce36b95b895cbe757d983a9081ca626025eef3f7ae9052e810d2541d98808e09a5793d2e8f  mkvtoolnix-7.3.0.tar.xz"