summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 71fab550e0ec70dbdb0856f9523f7a7a7448fe7f (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
# Maintainer: Marc Cousin <cousinmarc@gmail.com>
pkgname=mkvtoolnix-git
pkgver=r11478.dc0774258
pkgrel=1
pkgdesc="Git version of mkvtoolnix (to get the latest mkvtoolnix-gui)"
arch=(x86 x86_64)
url="https://www.bunkus.org/videotools/mkvtoolnix"
license=('GPL')
groups=()
depends=('libmatroska' 'expat' 'flac' 'libvorbis' 'file' 'boost-libs' 'lzo' 'wxgtk' 'xdg-utils' 'desktop-file-utils' 'qt5-base' 'libogg' 'zlib' 'curl' 'libxkbcommon-x11')
makedepends=('libmatroska' 'flac' 'libvorbis' 'file' 'wxgtk'
             'boost-libs' 'lzo' 'xdg-utils' 'boost' 'ruby' 'git' 'libxslt' 'po4a' 'docbook-xsl'
	     'cmark' 'rake' 'qt5-multimedia')

provides=('mkvtoolnix')
conflicts=('mkvtoolnix-cli' 'mkvtoolnix-gui')
replaces=('mkvtoolnix')
source=('git+https://gitlab.com/mbunkus/mkvtoolnix.git')
noextract=()
md5sums=('SKIP')


pkgver() {
	cd "$srcdir/mkvtoolnix"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
	true
	#nothing for now
	#cd "$srcdir/${pkgname%-VCS}"
	#patch -p1 -i "$srcdir/${pkgname%-VCS}.patch"
}

build() {
	cd "$srcdir/mkvtoolnix"
	./autogen.sh
	git submodule init
	git submodule update
	./configure --prefix=/usr
	# remove the -j${procs} if you suffer during compile...
	# At 8, my computer has a lot of trouble with 8GB of RAM...
	declare -i procs
	procs=`nproc`/2
	rake	-j${procs}
}

package() {
	cd "$srcdir/mkvtoolnix"
	rake DESTDIR="${pkgdir}" install
}