# maintainer: Neophytos Kolokotronis # cpntributions from ArchLinux: https://www.archlinux.org/packages/community/x86_64/handbrake-cli/ pkgname=handbrake-cli pkgver=0.10.0 pkgrel=2 pkgdesc="Multithreaded video transcoder (CLI)" arch=('x86_64') url="http://handbrake.fr/" license=('GPL') depends=('bzip2' 'gcc-libs' 'zlib' 'fribidi' 'libass' 'lame' 'libxml2' 'libtheora' 'libsamplerate' 'libbluray' 'x264' 'libdvdnav') makedepends=('intltool' 'python2' 'yasm' 'wget' 'libnotify' 'gst-plugins-base' 'dbus-glib') source=("http://downloads.sourceforge.net/project/handbrake/$pkgver/HandBrake-$pkgver.tar.bz2") categories=('multimedia') md5sums=('0902f724e2884bc9a5e077cc021b578d') prepare() { cd "$srcdir/HandBrake-$pkgver" # Use more system libs # We had ffmpeg here as well but it broke PGS subtitle processing # https://forum.handbrake.fr/viewtopic.php?f=13&t=27581 sed -i \ -e '/MODULES += contrib\/libbluray/d' \ make/include/main.defs } build() { cd "$srcdir/HandBrake-$pkgver" ./configure --prefix=/usr \ --force \ --disable-gtk \ --disable-gtk-update-checks cd build make } package() { cd "$srcdir/HandBrake-$pkgver/build" install -D HandBrakeCLI "$pkgdir/usr/bin/HandBrakeCLI" }