desktop/mkvtoolnix/PKGBUILD

51 lines
1.6 KiB
Bash
Raw Normal View History

2011-08-26 05:01:47 +08:00
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=mkvtoolnix
2012-11-15 21:35:26 +08:00
pkgver=5.8.0
pkgrel=2
2011-08-26 05:01:47 +08:00
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"
2012-11-15 21:35:26 +08:00
depends=('flac' 'libmatroska' 'libogg' 'libvorbis' 'qt' 'xdg-utils' 'libebml' 'zlib' 'boost-libs')
2012-07-28 10:11:42 +08:00
optdepends=('flac: for FLAC support (Free Lossless Audio Codec)'
'lzo2: for additional compression capabilities'
'bzip2: for additional compression capabilities'
'file: for automatic content type detection'
'curl: for online update checks')
makedepends=('gcc>=4.6.0' 'boost>=1.46.0' 'ruby')
categories=('multimedia')
2011-08-26 05:01:47 +08:00
install=mkvtoolnix.install
source=("http://www.bunkus.org/videotools/$pkgname/sources/$pkgname-$pkgver.tar.bz2")
2012-11-15 21:35:26 +08:00
sha256sums=('3c9ec7e4c035b82a35850c5ada98a29904edc44a0d1c9b900ed05d56e6274960')
2011-08-26 05:01:47 +08:00
build() {
2012-11-15 21:35:26 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
2011-08-26 05:01:47 +08:00
./configure \
--enable-qt \
--prefix=/usr \
--with-boost-libdir=/usr/lib
2011-12-28 02:44:05 +08:00
rake
2011-08-26 05:01:47 +08:00
}
package () {
2012-11-15 21:35:26 +08:00
cd "${srcdir}/${pkgname}-${pkgver}"
rake DESTDIR="${pkgdir}" install
2011-12-28 02:44:05 +08:00
rm -rf "${pkgdir}"/usr/bin/mkvinfo
install -Dm755 src/mkvinfo "${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
rm -rf "${pkgdir}"/usr/share/man/nl/man1/mmg.1
rm -rf "${pkgdir}"/usr/share/man/zh_CN/man1/mmg.1
rm -rf "${pkgdir}"/usr/share/man/uk/man1/mmg.1
rm -rf "${pkgdir}"/usr/share/applications
rm -rf "${pkgdir}"/usr/share/icons
rm -rf "${pkgdir}"/usr/share/mime
2011-08-26 05:01:47 +08:00
}