aboutsummaryrefslogblamecommitdiffstats
path: root/community/mkvtoolnix/APKBUILD
blob: 05ba3d43a5bdbd3a2c71adfd997dcc9099be793f (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                              
                                                     
                                                          
                  

             
                                                                 
                                            
                                                 
                      
                                                              


                                                                             
                                                                    
 
         
                                                        




                                         
                                      

                                 

 
         

                                         

 
           
                                      

 








                                                                 
                                                                                                                                                                       
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=mkvtoolnix
pkgver=48.0.0
pkgrel=0
pkgdesc="Set of tools to create, edit and inspect Matroska files"
url="https://mkvtoolnix.download/index.html"
arch="all !armhf" # qtmultimedia -> qtdeclarative
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="33cd028eb990a01433b511416b613ae0c44b398a80c4f2d56a8d419b0b76fde2c36f04024a182402d7e787ff369222df7f22873db34efe7af03746c1c2def80d  mkvtoolnix-48.0.0.tar.xz"