aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mkvtoolnix/APKBUILD
blob: f613c5beeba1d0f09419e2e6921becfc1aba1c13 (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
55
56
57
58
59
60
61
62
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=mkvtoolnix
pkgver=6.7.0
pkgrel=1
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"
install=""
subpackages="$pkgname-doc"
source="http://www.bunkus.org/videotools/mkvtoolnix/sources/mkvtoolnix-$pkgver.tar.xz
	mkvtoolnix-5.8.0-boost-configure.patch
	0001-uclibc-already-defines-bswap.patch"

_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="27bb6b0a10b3bb2fcf1c3e520c300207  mkvtoolnix-6.7.0.tar.xz
f8a4913b5f2ddee76143736aa1dcd4bb  mkvtoolnix-5.8.0-boost-configure.patch
ebb3aab6efa29de8cd176963971956d6  0001-uclibc-already-defines-bswap.patch"
sha256sums="82207c6ece01e76d51edcf6a330c9f0dc75e3bf4201fead3023c98bd7f323785  mkvtoolnix-6.7.0.tar.xz
060ef650d7cdfe0f6de0c614750a90105665b1321be3a59ef3e1fbec7a46bfa5  mkvtoolnix-5.8.0-boost-configure.patch
8e263aeb87a17dcd2809a5b7a5ed784766da1bff2b7c23ac3a8294588513f55a  0001-uclibc-already-defines-bswap.patch"
sha512sums="e45621b2d68e8938731b89e2ac35d3811523896736d15c73acda283c61ae3414b459b881bcfe6764b3839a61e0d2f83ce23ea2ad94d329378d1904b0b97ac949  mkvtoolnix-6.7.0.tar.xz
8965f2e4116fa340753a1414a1bd285ea26a0f38f48cb80b1a57608426d9f24958afff35756135051098edaebfcf0fe07521b59bad4f5193fe6833b0d6e1cd5b  mkvtoolnix-5.8.0-boost-configure.patch
f297b1b8715f06388b96b41c094843376c561599d8087a8c0375ce3985bd9e96f553bef6645e9811a2c589c58d5baf4b22cf9fda4df4a52739a090d8cb323a87  0001-uclibc-already-defines-bswap.patch"