diff options
Diffstat (limited to 'extra/mkvtoolnix')
-rw-r--r-- | extra/mkvtoolnix/PKGBUILD | 38 | ||||
-rw-r--r-- | extra/mkvtoolnix/mkvtoolnix.install | 14 |
2 files changed, 52 insertions, 0 deletions
diff --git a/extra/mkvtoolnix/PKGBUILD b/extra/mkvtoolnix/PKGBUILD new file mode 100644 index 000000000..79b1e0abf --- /dev/null +++ b/extra/mkvtoolnix/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 127788 2011-06-18 10:58:55Z giovanni $ +# Maintainer: Giovanni Scafora <giovanni@archlinux.org> + +pkgname=mkvtoolnix +pkgver=4.8.0 +pkgrel=3 +pkgdesc="Set of tools to create, edit and inspect Matroska files - CLI version" +arch=('i686' 'x86_64' 'mips64el') +license=('GPL') +url="http://www.bunkus.org/videotools/mkvtoolnix/index.html" +depends=('file' 'boost-libs' 'libmatroska' 'lzo2' 'expat' 'flac' 'libvorbis') +makedepends=('boost' 'ruby') +source=("http://www.bunkus.org/videotools/${pkgname}/sources/${pkgname}-${pkgver}.tar.bz2") +md5sums=('47a730706f3da2bcf4ba62bba3a8f260') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + # Disable automagic curl dep used for online update checking + 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" + + autoreconf + + ./configure --prefix=/usr \ + --with-boost-libdir=/usr/lib \ + --disable-gui + rake +} + +package () { + cd "${srcdir}/${pkgname}-${pkgver}" + + rake 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 +} |