aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mkvtoolnix/APKBUILD
blob: 87cc53bae04e7efd303ce4743d33504f5d2ddd51 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=mkvtoolnix
pkgver=6.7.0
pkgrel=2
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
	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
ebb3aab6efa29de8cd176963971956d6  0001-uclibc-already-defines-bswap.patch"
sha256sums="82207c6ece01e76d51edcf6a330c9f0dc75e3bf4201fead3023c98bd7f323785  mkvtoolnix-6.7.0.tar.xz
8e263aeb87a17dcd2809a5b7a5ed784766da1bff2b7c23ac3a8294588513f55a  0001-uclibc-already-defines-bswap.patch"
sha512sums="e45621b2d68e8938731b89e2ac35d3811523896736d15c73acda283c61ae3414b459b881bcfe6764b3839a61e0d2f83ce23ea2ad94d329378d1904b0b97ac949  mkvtoolnix-6.7.0.tar.xz
f297b1b8715f06388b96b41c094843376c561599d8087a8c0375ce3985bd9e96f553bef6645e9811a2c589c58d5baf4b22cf9fda4df4a52739a090d8cb323a87  0001-uclibc-already-defines-bswap.patch"