summaryrefslogtreecommitdiff
path: root/extra/mkvtoolnix
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-12-03 23:14:41 +0000
committerroot <root@rshg054.dnsready.net>2011-12-03 23:14:41 +0000
commit851376cd7720e1f9b35e0a7c26bfd66399f0c4d3 (patch)
treef8579d1c934aa5c28308372bedc321628555a424 /extra/mkvtoolnix
parent8eed59114cbcf729b65f87d3f73530f6c8363d20 (diff)
Sat Dec 3 23:14:41 UTC 2011
Diffstat (limited to 'extra/mkvtoolnix')
-rw-r--r--extra/mkvtoolnix/PKGBUILD28
1 files changed, 21 insertions, 7 deletions
diff --git a/extra/mkvtoolnix/PKGBUILD b/extra/mkvtoolnix/PKGBUILD
index d43b4a2fd..f19be33ce 100644
--- a/extra/mkvtoolnix/PKGBUILD
+++ b/extra/mkvtoolnix/PKGBUILD
@@ -1,17 +1,18 @@
-# $Id: PKGBUILD 141066 2011-10-23 00:15:19Z giovanni $
+# $Id: PKGBUILD 144061 2011-12-02 20:54:42Z ibiru $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: xduugu <xduugu@gmx.com>
pkgbase=mkvtoolnix
pkgname=('mkvtoolnix-cli' 'mkvtoolnix-gtk')
-pkgver=5.0.1
-pkgrel=4
+pkgver=5.1.0
+pkgrel=1
arch=('i686' 'x86_64')
license=('GPL')
url="http://www.bunkus.org/videotools/mkvtoolnix/index.html"
-makedepends=('libmatroska' 'flac' 'libvorbis' 'file' 'wxgtk'\
+makedepends=('libmatroska' 'flac' 'libvorbis' 'file' 'wxgtk'
'boost-libs' 'lzo2' 'xdg-utils' 'boost' 'ruby')
source=("http://www.bunkus.org/videotools/${pkgbase}/sources/${pkgbase}-${pkgver}.tar.bz2")
-md5sums=('93fbbe946de6013eca699c0c2a93a4e9')
+md5sums=('fed878893a7f292969e8bd81c7ab9209')
build() {
cd "${srcdir}/${pkgbase}-${pkgver}"
@@ -20,12 +21,19 @@ build() {
sed -i -e '/curl/d' configure.in
export CURL_CFLAGS="" CURL_LIBS=""
- export CFLAGS="${CFLAGS} -DBOOST_FILESYSTEM_VERSION=2"
- export CXXFLAGS="${CXXFLAGS} -DBOOST_FILESYSTEM_VERSION=2"
+ export CFLAGS="${CFLAGS} -DBOOST_FILESYSTEM_VERSION=3"
+ export CXXFLAGS="${CXXFLAGS} -DBOOST_FILESYSTEM_VERSION=3"
autoreconf
./configure --prefix=/usr \
+ --with-boost-libdir=/usr/lib \
+ --disable-gui
+ rake
+
+ mv src/mkvinfo{,-cli}
+
+ ./configure --prefix=/usr \
--with-boost-libdir=/usr/lib
rake
}
@@ -40,6 +48,9 @@ package_mkvtoolnix-cli() {
cd "${srcdir}/${pkgbase}-${pkgver}"
rake DESTDIR="${pkgdir}" install
+ rm -rf "${pkgdir}"/usr/bin/mkvinfo
+ install -Dm755 src/mkvinfo-cli "${pkgdir}"/usr/bin/mkvinfo
+
rm -rf "${pkgdir}"/usr/bin/mmg
rm -rf "${pkgdir}"/usr/share/man/ja/man1/mmg.1
rm -rf "${pkgdir}"/usr/share/man/man1/mmg.1
@@ -59,6 +70,9 @@ package_mkvtoolnix-gtk() {
rake DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/usr/bin/mkv*
+ install -Dm755 src/mkvinfo "${pkgdir}"/usr/bin/mkvinfo-gtk
+ sed -ri 's/^(Exec=mkvinfo)/\1-gtk/' "${pkgdir}"/usr/share/applications/mkvinfo.desktop
+
rm -rf "${pkgdir}"/usr/share/doc
rm -rf "${pkgdir}"/usr/share/locale
rm -rf "${pkgdir}"/usr/share/man/ja/man1/mkv*