blob: 5594f604ffa7b1a8564ccdb3fd1a11c6afab2dd9 (
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
73
74
75
76
77
|
# 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.9.0
pkgrel=4
pkgdesc="Multithreaded video transcoder. Enabled: x265, nvenc, fdk-aac, qsv, vce, numa, hardened"
arch=(x86_64 i686)
url="https://handbrake.fr/"
license=(LicenseRef-Unredistributable)
source=("handbrake::git+https://github.com/HandBrake/HandBrake.git#tag=${pkgver}")
_commondeps=(libass libvorbis opus speex libtheora lame libjpeg-turbo
x264 libx264.so jansson libvpx libva numactl)
_guideps=(gst-plugins-base gtk4 gdk-pixbuf2 pango libxml2 glib2)
_implicitdeps=(xz zlib glibc gcc-libs bzip2 libdrm)
makedepends=(git python nasm wget cmake meson llvm clang cargo-c
"${_commondeps[@]}" "${_guideps[@]}")
optdepends=('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=('6eb309e481dd98d32e868868100fd244367d2927f07d7ef9e2d7ae347b087d64')
options=(!lto)
build() {
# warning when build with -D_FORTIFY_SOURCE=3 (Arch Linux default)
export CFLAGS="${CFLAGS/D_FORTIFY_SOURCE=3/D_FORTIFY_SOURCE=2}"
export CXXFLAGS="${CXXFLAGS/D_FORTIFY_SOURCE=3/D_FORTIFY_SOURCE=2}"
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[@]}" "${_implicitdeps[@]}")
optdepends+=('gst-plugins-good: for video previews'
'gst-libav: for video previews')
provides=(handbrake)
conflicts=(handbrake)
cd "handbrake"
make DESTDIR="${pkgdir}" -C build install
install -D LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
rm "${pkgdir}/usr/bin/HandBrakeCLI"
}
package_handbrake-full-cli() {
pkgdesc="Multithreaded video transcoder (CLI)"
depends=("${_commondeps[@]}" "${_implicitdeps[@]}")
provides=(handbrake-cli)
conflicts=(handbrake-cli)
cd "handbrake"
install -D build/HandBrakeCLI "${pkgdir}/usr/bin/HandBrakeCLI"
install -D LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|