summaryrefslogtreecommitdiff
path: root/extra/mkvtoolnix
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/mkvtoolnix
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/mkvtoolnix')
-rw-r--r--extra/mkvtoolnix/PKGBUILD34
-rw-r--r--extra/mkvtoolnix/mkvtoolnix.install14
2 files changed, 48 insertions, 0 deletions
diff --git a/extra/mkvtoolnix/PKGBUILD b/extra/mkvtoolnix/PKGBUILD
new file mode 100644
index 000000000..554fd4ec6
--- /dev/null
+++ b/extra/mkvtoolnix/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 113970 2011-03-11 00:06:49Z giovanni $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: 03/08/04 <lefungus@altern.org>
+
+pkgname=mkvtoolnix
+pkgver=4.6.0
+pkgrel=1
+pkgdesc="Set of tools to create, edit and inspect Matroska files"
+arch=('i686' 'x86_64')
+license=('GPL')
+url="http://www.bunkus.org/videotools/mkvtoolnix/index.html"
+depends=('libmatroska' 'flac' 'libvorbis' 'file' 'boost-libs' 'lzo2' 'xdg-utils')
+makedepends=('wxgtk' 'boost' 'ruby')
+optdepends=('wxgtk: mkvmerge,mkvinfo and mmg GUI')
+install=mkvtoolnix.install
+source=("http://www.bunkus.org/videotools/${pkgname}/sources/${pkgname}-${pkgver}.tar.bz2")
+md5sums=('ca4e5b226175a6df2f9fdad206abf0a8')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ export CFLAGS="${CFLAGS} -DBOOST_FILESYSTEM_VERSION=2"
+ export CXXFLAGS="${CXXFLAGS} -DBOOST_FILESYSTEM_VERSION=2"
+
+ ./configure --prefix=/usr \
+ --with-boost-libdir=/usr/lib
+ ./drake
+}
+
+package () {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ ./drake DESTDIR="${pkgdir}" install
+}
diff --git a/extra/mkvtoolnix/mkvtoolnix.install b/extra/mkvtoolnix/mkvtoolnix.install
new file mode 100644
index 000000000..1cf75e1b6
--- /dev/null
+++ b/extra/mkvtoolnix/mkvtoolnix.install
@@ -0,0 +1,14 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ if [ -f usr/bin/update-mime-database ]; then
+ update-mime-database usr/share/mime &> /dev/null
+ fi
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ post_install $1
+}