summaryrefslogtreecommitdiffstats
path: root/abs/extra/handbrake/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/extra/handbrake/PKGBUILD')
-rw-r--r--abs/extra/handbrake/PKGBUILD44
1 files changed, 21 insertions, 23 deletions
diff --git a/abs/extra/handbrake/PKGBUILD b/abs/extra/handbrake/PKGBUILD
index 499f790..3b0c3e4 100644
--- a/abs/extra/handbrake/PKGBUILD
+++ b/abs/extra/handbrake/PKGBUILD
@@ -4,30 +4,32 @@
# Contributor: Sebastien Piccand <sebcactus gmail com>
pkgname=('handbrake' 'handbrake-cli')
-pkgver=0.10.2
-pkgrel=3
+pkgver=1.0.2
+pkgrel=1
arch=('i686' 'x86_64')
url="https://handbrake.fr/"
license=('GPL')
makedepends=('intltool' 'python2' 'yasm' 'wget' 'bzip2' 'gcc-libs' 'libnotify'
'gst-plugins-base' 'gtk3' 'dbus-glib' 'fribidi' 'libass' 'lame'
'fontconfig' 'freetype2' 'libxml2' 'libogg' 'libvorbis' 'cmake'
- 'libtheora' 'libsamplerate' 'libbluray' 'x264' 'libx264'
- 'libdvdnav' 'librsvg' 'libgudev')
-source=(https://handbrake.fr/mirror/HandBrake-$pkgver.tar.bz2)
-sha256sums=('4cc3828393b26a982dbe00febd700c5090d3443c1d45492e0b373e02da73c699')
+ 'libtheora' 'libsamplerate' 'ffmpeg' 'x264' 'libx264' 'x265'
+ 'libvpx' 'libdvdnav' 'jansson' 'librsvg' 'libgudev')
+source=(https://handbrake.fr/mirror/HandBrake-$pkgver.tar.bz2
+ handbrake-fix-missing-x265-link-flag.patch)
+sha256sums=('18e4563cc150309df03f7e73462b823ba2eca61644a7a536c9930611f3f9aa1e'
+ '05e212e76b6e0b94a04de02cbeb7bf9db607059e19297b5bd3d0d143135285c4')
prepare() {
cd "$srcdir/HandBrake-$pkgver"
+ # https://bugs.gentoo.org/show_bug.cgi?id=552792
+ patch -Np1 -i ../handbrake-fix-missing-x265-link-flag.patch
+
# 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
+ # Bundled libbluray is kept because it is patched locally
+ for _lib in ffmpeg x265 libvpx libdvdnav libdvdread; do
+ sed -i "/MODULES += contrib\/$_lib/d" make/include/main.defs
+ done
}
build() {
@@ -35,23 +37,19 @@ build() {
./configure \
--prefix=/usr \
- --force \
--disable-gtk-update-checks
- cd build
- make
+ make -C build
}
package_handbrake() {
pkgdesc="Multithreaded video transcoder"
depends=('bzip2' 'gcc-libs' 'gst-plugins-base' 'libnotify' 'dbus-glib'
'fribidi' 'libass' 'lame' 'gtk3' 'fontconfig' 'freetype2' 'libxml2'
- 'libogg' 'libvorbis' 'libtheora' 'libsamplerate' 'libbluray'
- 'libx264' 'libdvdnav' 'librsvg' 'libgudev' 'desktop-file-utils'
- 'hicolor-icon-theme')
- depends+=('libx264.so')
+ 'libogg' 'libvorbis' 'libtheora' 'libsamplerate' 'ffmpeg' 'libx264'
+ 'x265' 'libvpx' 'libdvdnav' 'jansson' 'librsvg' 'libgudev'
+ 'desktop-file-utils' 'hicolor-icon-theme')
optdepends=('gst-plugins-good: for video previews'
'gst-libav: for video previews')
- install=$pkgname.install
cd "$srcdir/HandBrake-$pkgver/build"
@@ -62,8 +60,8 @@ package_handbrake() {
package_handbrake-cli() {
pkgdesc="Multithreaded video transcoder (CLI)"
depends=('bzip2' 'gcc-libs' 'zlib' 'fribidi' 'libass' 'lame' 'libxml2'
- 'libtheora' 'libsamplerate' 'libbluray' 'libx264' 'libdvdnav')
- depends+=('libx264.so')
+ 'libtheora' 'libsamplerate' 'ffmpeg' 'libx264' 'x265' 'libvpx'
+ 'libdvdnav' 'jansson')
cd "$srcdir/HandBrake-$pkgver/build"
install -D HandBrakeCLI "$pkgdir/usr/bin/HandBrakeCLI"