blob: ffb0503aa3be169d1900684c775f62932a5c39ff (
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
|
# 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-git
pkgname=(handbrake-git handbrake-cli-git)
pkgver=1.9.0.r0.gfa9154a20
pkgrel=2
pkgdesc="Multithreaded video transcoder. Enabled: x265, nvenc, fdk-aac, qsv, vce, numa, hardened. Last stable branch"
arch=(i686 x86_64)
url="https://github.com/HandBrake/HandBrake"
license=(GPL-2.0-only)
source=("handbrake::git+https://github.com/HandBrake/HandBrake.git#branch=1.9.x")
_commondeps=(libxml2 libass libvorbis opus speex libtheora lame libjpeg-turbo
x264 libx264.so jansson libvpx libva numactl)
_guideps=(gst-plugins-base gtk4 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 Nvidia users, enable Nvidia nvenc'
'cuda: for Nvidia users, enable Nvidia nvdec'
'amf-amdgpu-pro: for enabling AMD AMF')
sha256sums=('SKIP')
options=(!lto)
pkgver() {
cd "handbrake"
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "handbrake"
./configure \
--prefix=/usr \
--harden \
--enable-x265 \
--enable-libdovi \
--enable-numa \
--enable-nvdec \
--enable-nvenc \
--enable-qsv \
--enable-vce
make -C build
}
package_handbrake-git() {
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-cli-git() {
pkgdesc="Multithreaded video transcoder (CLI)"
depends=("${_commondeps[@]}")
provides=(handbrake-cli)
conflicts=(handbrake-cli)
cd "$srcdir/handbrake/build"
install -D HandBrakeCLI "$pkgdir/usr/bin/HandBrakeCLI"
}
|