desktop/handbrake-cli/PKGBUILD
2015-03-22 07:53:58 +00:00

44 lines
1.3 KiB
Bash

# maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
# cpntributions from ArchLinux: https://www.archlinux.org/packages/community/x86_64/handbrake-cli/
pkgname=handbrake-cli
pkgver=0.10.1
pkgrel=1
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=("https://handbrake.fr/mirror/HandBrake-$pkgver.tar.bz2")
categories=('multimedia')
md5sums=('8b54ebaa5e4b40fd4d07b50a41f06258')
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' \
-e '/MODULES += contrib\/libdvdnav/d' \
-e '/MODULES += contrib\/libdvdread/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"
}