aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mkvtoolnix/APKBUILD
blob: 6ab116c25945e9b3ee72a7fd583730b34fff48c1 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=mkvtoolnix
pkgver=7.8.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
	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
	boost-1.58.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="91fd8f34c25b8d3980c3e39b3cb6ae6c  mkvtoolnix-7.8.0.tar.xz
db72bf028eeedd3029129e9c3a15a028  boost-1.58.patch"
sha256sums="4ea13a75db2170944e95e180aaab97e3f0d42c04d88a0d4baadacd554248fe54  mkvtoolnix-7.8.0.tar.xz
d1ea41d683732f4b20929da0efe1518d9b158e6c953923550f156ad4fc8b4bac  boost-1.58.patch"
sha512sums="6a56013da749fc6c661ade68a5d0fe50e710e2194f756d92cf47ccec471eb49206c14482ba1ccffedaf1ca164d3da49c3ea7f62296957bad7099baef8c7a083a  mkvtoolnix-7.8.0.tar.xz
fdf90f4b74c280587e63f82d5ebe0f974270e90930039d6b39bc691a1254293514be526f95360b3eecf21b9843edc36bd4f4a24816225dd63f77cee12838c1e2  boost-1.58.patch"