2015-06-23 08:48:35 +08:00
|
|
|
pkgbase=mkvtoolnix
|
|
|
|
pkgname=('mkvtoolnix-cli' 'mkvtoolnix-gui')
|
2017-07-24 12:41:39 +08:00
|
|
|
pkgver=14.0.0
|
2017-05-21 08:00:58 +08:00
|
|
|
pkgrel=1
|
2011-08-26 05:01:47 +08:00
|
|
|
pkgdesc="Set of tools to create, edit and inspect Matroska files."
|
2013-01-22 10:13:11 +08:00
|
|
|
arch=('x86_64')
|
2011-08-26 05:01:47 +08:00
|
|
|
license=('GPL')
|
|
|
|
url="http://www.bunkus.org/videotools/mkvtoolnix/index.html"
|
2012-07-28 10:11:42 +08:00
|
|
|
optdepends=('flac: for FLAC support (Free Lossless Audio Codec)'
|
2013-01-22 10:13:11 +08:00
|
|
|
'lzo2: for additional compression capabilities'
|
|
|
|
'bzip2: for additional compression capabilities'
|
|
|
|
'file: for automatic content type detection'
|
|
|
|
'curl: for online update checks')
|
2015-06-23 08:48:35 +08:00
|
|
|
makedepends=('flac' 'libmatroska' 'libogg' 'libvorbis' 'qt5-base' 'xdg-utils' 'libebml'
|
2017-04-23 09:15:26 +08:00
|
|
|
'zlib' 'boost-libs' 'expat' 'boost' 'ruby' 'libxslt' 'docbook-xsl' 'po4a'
|
|
|
|
'qt5-multimedia')
|
2012-03-16 22:51:37 +08:00
|
|
|
categories=('multimedia')
|
2015-06-23 08:48:35 +08:00
|
|
|
source=("http://www.bunkus.org/videotools/${pkgbase}/sources/${pkgbase}-${pkgver}.tar.xz")
|
2017-07-24 12:41:39 +08:00
|
|
|
sha256sums=('86aa96acb26f7ef9d7afb4d0c1fa1a086b398d563b77372c436044c3c6bba78c')
|
2015-06-23 08:48:35 +08:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
|
|
|
|
# Disable automagic curl dep used for online update checking
|
2015-09-20 23:55:12 +08:00
|
|
|
sed -i -e '/curl/d' configure.ac
|
2015-06-23 08:48:35 +08:00
|
|
|
export CURL_CFLAGS="" CURL_LIBS=""
|
|
|
|
|
|
|
|
export CFLAGS="${CFLAGS} -DBOOST_FILESYSTEM_VERSION=3"
|
|
|
|
export CXXFLAGS="${CXXFLAGS} -DBOOST_FILESYSTEM_VERSION=3"
|
|
|
|
|
|
|
|
autoreconf -vfi
|
2011-08-26 05:01:47 +08:00
|
|
|
}
|
|
|
|
|
2016-02-24 07:20:31 +08:00
|
|
|
build() {
|
|
|
|
cd mkvtoolnix-${pkgver}
|
|
|
|
|
|
|
|
./configure --prefix='/usr' \
|
|
|
|
--without-curl \
|
|
|
|
--disable-qt
|
2017-02-02 15:45:30 +08:00
|
|
|
rake apps:mkvinfo $MAKEFLAGS
|
2016-02-24 07:20:31 +08:00
|
|
|
mv src/mkvinfo{,-cli}
|
|
|
|
|
|
|
|
./configure --prefix='/usr' \
|
|
|
|
--without-curl
|
2017-02-02 15:45:30 +08:00
|
|
|
rake $MAKEFLAGS
|
2016-02-24 07:20:31 +08:00
|
|
|
}
|
|
|
|
|
2015-06-23 08:48:35 +08:00
|
|
|
package_mkvtoolnix-cli() {
|
|
|
|
pkgdesc="Set of tools to create, edit and inspect Matroska files - CLI version"
|
2015-06-24 05:07:45 +08:00
|
|
|
depends=('libmatroska' 'expat' 'flac' 'libvorbis' 'file' 'boost-libs' 'lzo2')
|
2015-06-23 08:48:35 +08:00
|
|
|
provides=('mkvtoolnix')
|
|
|
|
conflicts=('mkvtoolnix')
|
|
|
|
replaces=('mkvtoolnix')
|
|
|
|
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
|
2017-02-02 15:45:30 +08:00
|
|
|
rake DESTDIR="${pkgdir}" install
|
2016-02-24 07:20:31 +08:00
|
|
|
install -m 755 src/mkvinfo-cli "${pkgdir}"/usr/bin/mkvinfo
|
|
|
|
rm -rf "${pkgdir}"/usr/share/{applications,icons,mime}
|
|
|
|
find "${pkgdir}" -name mkvtoolnix-gui* -delete
|
2015-06-23 08:48:35 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package_mkvtoolnix-gui() {
|
|
|
|
pkgdesc="Set of tools to create, edit and inspect Matroska files - Qt GUI"
|
2017-04-23 09:15:26 +08:00
|
|
|
depends=("mkvtoolnix-cli=${pkgver}" 'qt5-base' 'qt5-multimedia' 'xdg-utils' 'desktop-file-utils')
|
2015-06-23 08:48:35 +08:00
|
|
|
install=mkvtoolnix.install
|
|
|
|
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
|
|
|
2017-02-02 15:45:30 +08:00
|
|
|
rake DESTDIR="${pkgdir}" install
|
2015-06-23 08:48:35 +08:00
|
|
|
rm -rf "${pkgdir}"/usr/share/locale
|
2016-02-24 07:20:31 +08:00
|
|
|
for t in mkv{extract,info,merge,propedit}; do
|
|
|
|
find "${pkgdir}" -name $t* -delete
|
|
|
|
done
|
2015-06-23 08:48:35 +08:00
|
|
|
|
2017-04-25 06:57:06 +08:00
|
|
|
# Fix file conflicts with mkvtoolnix-cli
|
|
|
|
rm -rf ${pkgdir}/usr/share/mkvtoolnix/sounds
|
|
|
|
|
2016-02-24 07:20:31 +08:00
|
|
|
# install -Dm755 src/mkvinfo "${pkgdir}"/usr/bin/mkvinfo-gui
|
|
|
|
# sed -ri 's/^(Exec=mkvinfo)/\1-gui/' "${pkgdir}"/usr/share/applications/mkvinfo.desktop
|
2011-08-26 05:01:47 +08:00
|
|
|
}
|