desktop/handbrake-cli/PKGBUILD

49 lines
1.5 KiB
Bash
Raw Normal View History

2016-12-27 19:52:57 +08:00
# contributions from ArchLinux: https://www.archlinux.org/packages/community/x86_64/handbrake-cli/
pkgname=handbrake-cli
2016-12-27 19:52:57 +08:00
pkgver=1.0.0
2016-04-14 07:56:25 +08:00
pkgrel=1
2014-11-25 19:03:57 +08:00
pkgdesc="Multithreaded video transcoder (CLI)"
2013-05-30 04:33:19 +08:00
arch=('x86_64')
2011-02-22 06:36:19 +08:00
url="http://handbrake.fr/"
license=('GPL')
2016-12-27 19:52:57 +08:00
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://handbrake.fr/mirror/HandBrake-$pkgver.tar.bz2"
"handbrake-fix-missing-x265-link-flag.patch")
categories=('multimedia')
2016-12-27 19:52:57 +08:00
sha256sums=('15fb4593c70d75621212e4499f018c3c93d7ce39f1083bf527d4616ded0044c5'
'05e212e76b6e0b94a04de02cbeb7bf9db607059e19297b5bd3d0d143135285c4')
2014-11-25 19:03:57 +08:00
prepare() {
2011-02-22 06:36:19 +08:00
cd "$srcdir/HandBrake-$pkgver"
2016-12-27 19:52:57 +08:00
# https://bugs.gentoo.org/show_bug.cgi?id=552792
patch -Np1 -i ../handbrake-fix-missing-x265-link-flag.patch
# Use more system libs
2016-12-27 19:52:57 +08:00
# Bundled libbluray is kept because it is patched locally
# Our ffmpeg is a liitle old so keep using bundled version
for _lib in x265 libvpx libdvdnav libdvdread; do
sed -i "/MODULES += contrib\/$_lib/d" make/include/main.defs
done
2014-11-25 19:03:57 +08:00
}
build() {
cd "$srcdir/HandBrake-$pkgver"
./configure --prefix=/usr \
--force \
--disable-gtk \
2014-11-25 19:03:57 +08:00
--disable-gtk-update-checks
2011-02-22 06:36:19 +08:00
cd build
make
}
package() {
2011-02-22 06:36:19 +08:00
cd "$srcdir/HandBrake-$pkgver/build"
install -D HandBrakeCLI "$pkgdir/usr/bin/handbrake-cli"
2011-02-22 06:36:19 +08:00
}