blob: 4252c609c08791638a295457aff82fd680944d29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: HurricanePootis <hurricanepootis@protonmail.com>
# Contributor: graysky <graysky AT archlinux DOT us>
# Contributor: jiribb <jiribb@gmail.com>
# Contributor: David Spicer <azleifel at googlemail dot com>
# Contributor: Andrew Brouwers
# Contributor: ponsfoot <cabezon dot hashimoto at gmail dot com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
pkgbase=handbrake-full
pkgname=(handbrake-full handbrake-full-cli)
pkgver=1.8.1
pkgrel=2
pkgdesc="Multithreaded video transcoder. Enabled: x265, nvenc, fdk-aac, qsv, vce, numa, hardened"
arch=(x86_64 i686)
url="https://handbrake.fr/"
license=(GPL-2.0-only)
source=("handbrake::git+https://github.com/HandBrake/HandBrake.git#tag=${pkgver}")
_commondeps=(libxml2 libass libvorbis opus speex libtheora lame libjpeg-turbo
x264 libx264.so jansson libvpx libva numactl)
_guideps=(gst-plugins-base gtk4 librsvg libgudev)
makedepends=(git intltool python nasm wget cmake meson llvm clang cargo-c
"${_commondeps[@]}" "${_guideps[@]}")
optdepends=('libdvdcss: for decoding encrypted DVDs'
'intel-media-sdk: for enabling Intel QSV'
'nvidia-utils: for enabling Nvidia nvenc and nvdec'
'cuda: for enabling Nvidia nvenc and nvdec'
'amf-amdgpu-pro: for enabling AMD AMF')
sha256sums=('99a054f95dc789bb6bf5b69cea5a5dd64653cd991102ed409495d421c04bf227')
options=(!lto)
build() {
cd "handbrake"
./configure \
--prefix=/usr \
--harden \
--enable-x265 \
--enable-numa \
--enable-libdovi \
--enable-fdk-aac \
--enable-nvenc \
--enable-nvdec \
--enable-qsv \
--enable-vce
make -C build
}
package_handbrake-full() {
pkgdesc="Multithreaded video transcoder"
depends=("${_commondeps[@]}" "${_guideps[@]}")
optdepends+=('gst-plugins-good: for video previews'
'gst-libav: for video previews')
provides=(handbrake)
conflicts=(handbrake)
cd "$srcdir/handbrake/build"
make DESTDIR="$pkgdir" install
rm "$pkgdir/usr/bin/HandBrakeCLI"
}
package_handbrake-full-cli() {
pkgdesc="Multithreaded video transcoder (CLI)"
depends=("${_commondeps[@]}")
provides=(handbrake-cli)
conflicts=(handbrake-cli)
cd "$srcdir/handbrake/build"
install -D HandBrakeCLI "$pkgdir/usr/bin/HandBrakeCLI"
}
|