aboutsummaryrefslogtreecommitdiffstats
path: root/community/mkvtoolnix/APKBUILD
blob: 4b68d862202861237c54193362fdca03a959f065 (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=mkvtoolnix
pkgver=38.0.0
pkgrel=0
pkgdesc="Set of tools to create, edit and inspect Matroska files"
url="https://mkvtoolnix.download/index.html"
arch="all"
license="GPL-2.0-only"
makedepends="boost-dev docbook-xsl file-dev flac-dev gtest-dev
	libmatroska-dev libogg-dev libvorbis-dev ruby-json ruby-rake zlib-dev
	qt5-qtbase-dev qt5-qtmultimedia-dev cmark-dev"
subpackages="$pkgname-doc $pkgname-gui"
source="https://mkvtoolnix.download/sources/$pkgname-$pkgver.tar.xz"

build() {
	./configure CC="${CC:-gcc}" CFLAGS="${CFLAGS}" \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--without-gettext
	rake V=1 -j${JOBS}
}

check() {
	rake V=1 -j${JOBS} tests:unit
	rake V=1 -j${JOBS} tests:run_unit
}

package() {
	rake DESTDIR="$pkgdir" install
}

gui() {
	pkgdesc="$pkgdesc (GUI)"
	depends="$pkgname qt5-qtmultimedia"

	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/mkvtoolnix-gui "$subpkgdir"/usr/bin/
	mv "$pkgdir"/usr/share "$subpkgdir"/usr/
}

sha512sums="ae8794884fc86e9f4f61fd4b0a2e00cc3c007450ab784441540787a26522488f851e6c87e950c10f24e85d880668a2da1bf1b55df7f450b588dcad0da12f8728  mkvtoolnix-38.0.0.tar.xz"