# Maintainer: Nathan Angelacos pkgname=handbrake _pkgname=HandBrake pkgver=1.2.2 pkgrel=1 pkgdesc="Handbrake video transcoder" url="https://handbrake.fr" arch="x86_64 x86 armhf armv7 ppc64le" license="GPL-2.0-only" makedepends="yasm autoconf libtool zlib-dev libbz2 libogg-dev libtheora-dev libvorbis-dev libsamplerate-dev fribidi-dev freetype-dev tinyxml-dev fontconfig-dev libass-dev intltool glib-dev dbus-glib-dev gtk+3.0-dev libgudev-dev libnotify-dev libdvdread-dev gst-plugins-base-dev x264-dev lame-dev linux-headers cmake automake ffmpeg-dev coreutils libdvdnav-dev libbluray-dev x265-dev libvpx-dev fdk-aac-dev jansson-dev opus-dev python2 speex-dev xz-dev" subpackages="$pkgname-lang $pkgname-gtk" source="https://download.handbrake.fr/releases/$pkgver/HandBrake-$pkgver-source.tar.bz2 handbrake-9999-fix-missing-x265-link-flag.patch handbrake-9999-remove-dvdnav-dup.patch handbrake-9999-remove-faac-dependency.patch disable-nvenc.patch " options="!check" builddir="$srcdir"/${_pkgname}-${pkgver} prepare() { default_prepare # build against external libs sed -i 's:.*contrib/.*::g' \ make/include/main.defs } build() { ./configure \ --prefix=/usr \ --force \ --verbose \ --disable-nvenc \ --disable-gtk-update-checks cd build make } package() { cd "$builddir"/build make -j1 install DESTDIR="$pkgdir" } gtk() { pkgdesc="HandBrake Video Transcoder - GUI" install -d "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/ghb "$subpkgdir"/usr/bin/ghb mv "$pkgdir"/usr/share "$subpkgdir"/usr } sha512sums="434e6db1acbe01771aeefd2f257bdc58ad84e63ba441f4977f634b9ccb3c708176b928adf1dfa9e20d4948b65876ae9b4dfdc35f9c56f03f34858380090ab29c HandBrake-1.2.2-source.tar.bz2 9ca716b290f384db839609d176b6883c4dc1aaf31206b206cfd1f29c85bb134e29fbf72bda1a8589f76e1885019dbdee5a39d8299f7f0a20a6ef8a01868f4845 handbrake-9999-fix-missing-x265-link-flag.patch a3d57dd37d518286a62554cfcc4722d6fd588a0c3966d30785100edc4476febb2b48fc4f9b2a7eb5b5dc049043fabd4398e1e190e10cbd63c25b2936824977d3 handbrake-9999-remove-dvdnav-dup.patch 9d070e50a9b7d4b8ac25b7d56bd341aca6dc979ba506c84f4b95109909f70020723915cd120bed24e84a8fc242ee3c3a5775f43a78b7995e53cd499444c9f6dc handbrake-9999-remove-faac-dependency.patch d1dbd3f884c5619efba28b5dbf4c90e7f0386cb6e7a2bb016eb5f6220207e2c1826095d7240a67861061a828da95261fdca1729de0e2359c1ee7dae66293a8c5 disable-nvenc.patch"