desktop/handbrake-cli/PKGBUILD
2018-09-13 01:47:51 +02:00

44 lines
1.3 KiB
Bash

# contributions from ArchLinux: https://www.archlinux.org/packages/community/x86_64/handbrake-cli/
pkgname=handbrake-cli
pkgver=1.1.2
pkgrel=1
pkgdesc="Multithreaded video transcoder (CLI)"
arch=('x86_64')
url="https://handbrake.fr/"
license=('GPL')
depends=('bzip2' 'gcc-libs' 'zlib' 'fribidi' 'libass' 'lame' 'libxml2'
'libtheora' 'libsamplerate' 'ffmpeg' 'libx264' 'x264' 'x265' 'libvpx'
'libdvdnav' 'jansson')
makedepends=('intltool' 'python2' 'yasm' 'wget' 'libnotify' 'gst-plugins-base' 'dbus-glib' 'cmake')
source=("https://download2.handbrake.fr/$pkgver/HandBrake-$pkgver-source.tar.bz2")
categories=('multimedia')
sha256sums=('ba9a4a90a7657720f04e4ba0a2880ed055be3bd855e99c0c13af944c3904de2e')
prepare() {
cd HandBrake-$pkgver
# Use more system libs
# Bundled libbluray is kept because it is patched locally
# Our ffmpeg is a liitle old so keep using bundled version
for _lib in libvpx libdvdnav libdvdread; do
sed -i "/MODULES += contrib\/$_lib/d" make/include/main.defs
done
}
build() {
cd HandBrake-$pkgver
./configure --prefix=/usr \
--force \
--disable-gtk \
--disable-gtk-update-checks
cd build
make
}
package() {
cd HandBrake-$pkgver/build
install -D HandBrakeCLI "$pkgdir/usr/bin/handbrake-cli"
}